sulu / sulu-rector
Rector upgrades rules for Sulu CMS
Installs: 160 216
Dependents: 9
Suggesters: 0
Security: 0
Stars: 14
Watchers: 7
Forks: 3
Open Issues: 7
Type:rector-extension
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
This project contains Rector rules for Sulu CMS upgrades.
Install
Install rector and sulu rector via composer to your project:
composer require rector/rector --dev composer require sulu/sulu-rector --dev
Use Sets
To add a set to your config, use Sulu\Rector\Set\SymfonySetList
and Sulu\Rector\Set\SuluLevelSetList
class and pick one of constants:
use Sulu\Rector\Set\SuluLevelSetList; use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ SuluLevelSetList::UP_TO_SULU_26, ]); };