From 3371203a28b62f56527be2911ded5c6625d3c78f Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Thu, 29 Dec 2022 19:55:05 +0300 Subject: [PATCH] fix rector.php --- rector.php | 6 ++++++ 1 file changed, 6 insertions(+) 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); };