Upgrade
November 28, 2022
PHP Upgrade # Supported Versions # https://www.php.net/supported-versions.php https://qiita.com/bezeklik/items/72d1ff8393f66673e2bc Rector # Overview # rectorphp/rector Rector instantly upgrades and refactors the PHP code of your application. Rules Overview Install # $ composer require rector/rector --dev $ composer install $ vendor/bin/rector init $ vi rector.php <?php declare(strict_types=1); // use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; use Rector\Config\RectorConfig; use Rector\Set\ValueObject\LevelSetList; return static function (RectorConfig $rectorConfig): void { // register paths to upgrade and refactor PHP code $rectorConfig->paths([ __DIR__ . ...