Skip to content

Latest commit

 

History

History
executable file
·
33 lines (23 loc) · 891 Bytes

README.md

File metadata and controls

executable file
·
33 lines (23 loc) · 891 Bytes

rector-config

Shared configuration for rector

GitHub license Packagist Packagist

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.