From fbaa467313fcb01316db5cb9f2a7b5d530a3e824 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Tue, 26 Nov 2024 11:23:23 +0700 Subject: [PATCH] Update rector config --- rector.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/rector.php b/rector.php index 0e7d2cd01..ca4c98259 100644 --- a/rector.php +++ b/rector.php @@ -4,8 +4,7 @@ use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; use Rector\Config\RectorConfig; -use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; -use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; +use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector; use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; use Rector\Set\ValueObject\LevelSetList; @@ -21,12 +20,11 @@ // define sets of rules $rectorConfig->sets([ - LevelSetList::UP_TO_PHP_80, + LevelSetList::UP_TO_PHP_81, ]); $rectorConfig->skip([ - ClosureToArrowFunctionRector::class, - JsonThrowOnErrorRector::class, + NullToStrictStringFuncCallArgRector::class, ReadOnlyPropertyRector::class, ]); };