diff --git a/rector.php b/rector.php index e5527495..aff63330 100644 --- a/rector.php +++ b/rector.php @@ -4,7 +4,6 @@ use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector; use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; -use Rector\TypeDeclaration\Rector\ClassMethod\StrictStringParamConcatRector; use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; use Rector\Config\RectorConfig; @@ -22,7 +21,4 @@ ]) ->withSkip([ ClassPropertyAssignToConstructorPromotionRector::class, - StrictStringParamConcatRector::class => [ - __DIR__ . '/src/Database/Adapters/Idiorm/Statements/Criteria.php', - ], ]); diff --git a/src/Validation/Traits/Lists.php b/src/Validation/Traits/Lists.php index 495165e9..c690f49c 100644 --- a/src/Validation/Traits/Lists.php +++ b/src/Validation/Traits/Lists.php @@ -34,7 +34,7 @@ protected function containsList(string $value, string ...$list): bool { $value = trim(strtolower($value)); - $list = array_map(fn (string $item) => trim(strtolower($item)), $list); + $list = array_map(fn (string $item): string => trim(strtolower($item)), $list); return in_array($value, $list); } @@ -46,7 +46,7 @@ protected function doesntContainsList(string $value, string ...$list): bool { $value = trim(strtolower($value)); - $list = array_map(fn (string $item) => trim(strtolower($item)), $list); + $list = array_map(fn (string $item): string => trim(strtolower($item)), $list); return !in_array($value, $list); }