diff --git a/rector.php b/rector.php index 44b4512fc..ce21c858e 100644 --- a/rector.php +++ b/rector.php @@ -4,6 +4,9 @@ use Rector\CodeQuality\Rector\PropertyFetch\ExplicitMethodCallOverMagicGetSetRector; use Rector\Config\RectorConfig; +use RectorLaravel\Rector\Assign\CallOnAppArrayAccessToStandaloneAssignRector; +use RectorLaravel\Rector\ClassMethod\AddParentRegisterToEventServiceProviderRector; +use RectorLaravel\Set\LaravelSetList; use Rector\Php74\Rector\Property\TypedPropertyRector; use Rector\PHPUnit\Set\PHPUnitSetList; use Rector\Set\ValueObject\SetList; @@ -19,6 +22,7 @@ // Define what rule sets will be applied $containerConfigurator->import(PHPUnitSetList::PHPUNIT_91); + $containerConfigurator->import(LaravelSetList::LARAVEL_90); $containerConfigurator->import(SetList::CODE_QUALITY); $containerConfigurator->import(SetList::DEAD_CODE); $containerConfigurator->import(SetList::PHP_80); @@ -28,4 +32,6 @@ // register a single rule $services->set(TypedPropertyRector::class); + $services->set(CallOnAppArrayAccessToStandaloneAssignRector::class); + $services->set(AddParentRegisterToEventServiceProviderRector::class); };