mll-lab/rector-config

Shared rules for rector

v2.4.0 2024-02-16 09:07 UTC

This package is auto-updated.

Last update: 2024-10-16 10:29:29 UTC


README

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.