Skip to content

Commit cd0001e

Browse files
committed
[ci-review] Rector Rectify
1 parent 61ac9ee commit cd0001e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

rector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
declare(strict_types=1);
44

5+
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
56
use Rector\CodingStyle\Rector\String_\UseClassKeywordForClassNameResolutionRector;
67
use Rector\Config\RectorConfig;
78
use Rector\DeadCode\Rector\ConstFetch\RemovePhpVersionIdCheckRector;
@@ -42,7 +43,7 @@
4243
->withRules([RemoveRefactorDuplicatedNodeInstanceCheckRector::class, AddSeeTestAnnotationRector::class])
4344
->withSkip([
4445
// testing skip of deprecated class
45-
\Rector\Php81\Rector\Array_\FirstClassCallableRector::class,
46+
FirstClassCallableRector::class,
4647

4748
StringClassNameToClassConstantRector::class,
4849
// tests

rules/Php81/Rector/Array_/FirstClassCallableRector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Rector\Php81\Rector\Array_;
46

57
use PhpParser\Node;

src/Skipper/SkipCriteriaResolver/SkippedClassResolver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ public function resolveDeprecatedSkippedClasses(): array
2626
{
2727
$skippedClassNames = array_keys($this->resolve());
2828

29-
return array_filter($skippedClassNames, function (string $class): bool {
30-
return is_a($class, DeprecatedInterface::class, true);
31-
});
29+
return array_filter($skippedClassNames, fn(string $class): bool => is_a($class, DeprecatedInterface::class, true));
3230
}
3331

3432
/**

0 commit comments

Comments
 (0)