Skip to content

Commit 1911d6d

Browse files
committed
Register MakeDispatchFirstArgumentEventRector
1 parent f65e2d3 commit 1911d6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/sets/symfony/symfony4/symfony43/symfony43-event-dispatcher.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44

55
use Rector\Config\RectorConfig;
66
use Rector\Renaming\Rector\Name\RenameClassRector;
7+
use Rector\Symfony\Symfony43\Rector\MethodCall\MakeDispatchFirstArgumentEventRector;
78

89
return static function (RectorConfig $rectorConfig): void {
910
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
1011
// has lowest priority, have to be last
1112
'Symfony\Component\EventDispatcher\Event' => 'Symfony\Contracts\EventDispatcher\Event',
1213
]);
14+
15+
$rectorConfig->rules([
16+
MakeDispatchFirstArgumentEventRector::class,
17+
]);
1318
};

0 commit comments

Comments
 (0)