sky / sky-rector
Rector 升级规则用于 Sulu CMS
1.0.0
2024-02-07 10:05 UTC
Requires
- php: ^8.1
- rector/rector: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.6
- jackalope/jackalope-doctrine-dbal: ^1.7
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.7
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-strict-rules: ^1.2
- phpstan/phpstan-webmozart-assert: ^1.1
- phpunit/phpunit: ^9.5.20
- sulu/sulu: ^2.5@dev
- thecodingmachine/phpstan-strict-rules: ^1.0
README
本项目包含用于 Rector 规则 的 Sulu CMS 升级。
安装
通过 composer 在项目中安装 rector 和 sky rector
composer require rector/rector --dev composer require sulu/sulu-rector --dev
使用集合
要将集合添加到配置中,请使用 Sky\Rector\Set\SymfonySetList
和 Sky\Rector\Set\SkyLevelSetList
类,并选择一个常量
use Sulu\Rector\Set\SuluLevelSetList; use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ SuluLevelSetList::UP_TO_SULU_26, ]); };