Skip to content

Commit c4b6069

Browse files
authored
Merge pull request quantum-php#557 from armanist/issue/532-rector-followup
[quantum-php#532] Apply Rector follow-up
2 parents cd740e9 + 41eaa54 commit c4b6069

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

rector.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
66
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
7-
use Rector\TypeDeclaration\Rector\ClassMethod\StrictStringParamConcatRector;
87
use Rector\Set\ValueObject\LevelSetList;
98
use Rector\Set\ValueObject\SetList;
109
use Rector\Config\RectorConfig;
@@ -22,7 +21,4 @@
2221
])
2322
->withSkip([
2423
ClassPropertyAssignToConstructorPromotionRector::class,
25-
StrictStringParamConcatRector::class => [
26-
__DIR__ . '/src/Database/Adapters/Idiorm/Statements/Criteria.php',
27-
],
2824
]);

src/Validation/Traits/Lists.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function containsList(string $value, string ...$list): bool
3434
{
3535
$value = trim(strtolower($value));
3636

37-
$list = array_map(fn (string $item) => trim(strtolower($item)), $list);
37+
$list = array_map(fn (string $item): string => trim(strtolower($item)), $list);
3838

3939
return in_array($value, $list);
4040
}
@@ -46,7 +46,7 @@ protected function doesntContainsList(string $value, string ...$list): bool
4646
{
4747
$value = trim(strtolower($value));
4848

49-
$list = array_map(fn (string $item) => trim(strtolower($item)), $list);
49+
$list = array_map(fn (string $item): string => trim(strtolower($item)), $list);
5050

5151
return !in_array($value, $list);
5252
}

0 commit comments

Comments
 (0)