Custom Rector rules package.
composer require --dev vix/rector-rules<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withImportNames()
->withPaths([__DIR__ . '/src'])
->withSets([__DIR__ . '/vendor/vix/rector-rules/config/rules.php']);See docs/RULES.md for detailed descriptions, before/after examples, and configuration notes for every rule in this package.