mll-lab / rector-config

Shared configuration for rector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Shared configuration for rector

License:MIT License


Languages

Language:PHP 65.1%Language:Makefile 34.9%