Applied rector with PHP8.1 migration rules

This commit is contained in:
Jan Böhmer 2023-06-11 14:15:46 +02:00
parent dc6a67c2f0
commit 7ee01d9a05
303 changed files with 1228 additions and 3465 deletions

View file

@ -74,7 +74,7 @@ class ParameterExtractor
$split = $this->splitString($input);
foreach ($split as $param_string) {
$tmp = $this->stringToParam($param_string, $class);
if (null !== $tmp) {
if ($tmp instanceof \App\Entity\Parameters\AbstractParameter) {
$parameters[] = $tmp;
}
}
@ -89,7 +89,7 @@ class ParameterExtractor
$matches = [];
preg_match($regex, $input, $matches);
if (!empty($matches)) {
if ($matches !== []) {
[, $name, $value] = $matches;
$value = trim($value);