Skip to content

Commit

Permalink
Ignore FirstClassCallableRector
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Mar 16, 2024
1 parent 2bf7fb4 commit b128941
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;

return RectorConfig::configure()
Expand All @@ -15,4 +16,9 @@
->withPreparedSets(deadCode: true, codingStyle: true)
->withRules([
AddVoidReturnTypeWhereNoReturnRector::class,
])
->withSkip([
FirstClassCallableRector::class => [
__DIR__ . '/tests/Stubs/EventListeners/UserEventSubscriber.php',
],
]);

0 comments on commit b128941

Please sign in to comment.