mll-lab / rector-config
Shared rules for rector
Installs: 17 910
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- rector/rector: 0.15 - 1
Requires (Dev)
README
Shared configuration for rector
Installation
composer require --dev mll-lab/rector-config
Usage
In your rector.php
:
+use function MLL\RectorConfig\config; use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig): void { + config($rectorConfig); $rectorConfig->paths([ ... ]); $rectorConfig->rule(...); };
If the project is using Laravel, use laravel
instead of config
.