diff --git a/composer.json b/composer.json index 532efaf..8b30678 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "codeigniter4/devkit": "^1.1.2", "codeigniter4/framework": "^4.2.3", "phpunit/phpunit": "^9.6", - "rector/rector": "1.1.0" + "rector/rector": "1.1.1" }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/rector.php b/rector.php index 9e7805d..c999c21 100644 --- a/rector.php +++ b/rector.php @@ -22,7 +22,6 @@ use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector; use Rector\EarlyReturn\Rector\Return_\PreparedValueToEarlyReturnRector; use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; -use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector; use Rector\PHPUnit\Set\PHPUnitSetList; use Rector\Set\ValueObject\LevelSetList; @@ -31,7 +30,7 @@ use Rector\ValueObject\PhpVersion; return static function (RectorConfig $rectorConfig): void { - $rectorConfig->sets([SetList::DEAD_CODE, LevelSetList::UP_TO_PHP_74, PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD, PHPUnitSetList::PHPUNIT_80]); + $rectorConfig->sets([SetList::DEAD_CODE, LevelSetList::UP_TO_PHP_74, PHPUnitSetList::PHPUNIT_80]); $rectorConfig->parallel(); // The paths to refactor (can also be supplied with CLI arguments) $rectorConfig->paths([ @@ -63,7 +62,6 @@ $rectorConfig->skip([ __DIR__ . '/src/Views', - JsonThrowOnErrorRector::class, StringifyStrNeedlesRector::class, // Note: requires php 8