Skip to content

Commit b128941

Browse files
committed
Ignore FirstClassCallableRector
1 parent 2bf7fb4 commit b128941

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rector.php

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
declare(strict_types=1);
44

55
use Rector\Config\RectorConfig;
6+
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
67
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
78

89
return RectorConfig::configure()
@@ -15,4 +16,9 @@
1516
->withPreparedSets(deadCode: true, codingStyle: true)
1617
->withRules([
1718
AddVoidReturnTypeWhereNoReturnRector::class,
19+
])
20+
->withSkip([
21+
FirstClassCallableRector::class => [
22+
__DIR__ . '/tests/Stubs/EventListeners/UserEventSubscriber.php',
23+
],
1824
]);

0 commit comments

Comments
 (0)