rector.php 717 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
  4. use Rector\Config\RectorConfig;
  5. use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
  6. use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
  7. return RectorConfig::configure()
  8. ->withPaths([
  9. __DIR__.'/src',
  10. __DIR__.'/tests',
  11. ])
  12. ->withSkip([
  13. ReadOnlyPropertyRector::class,
  14. EncapsedStringsToSprintfRector::class,
  15. DisallowedEmptyRuleFixerRector::class,
  16. ])
  17. ->withPreparedSets(
  18. deadCode: true,
  19. codeQuality: true,
  20. codingStyle: true,
  21. typeDeclarations: true,
  22. earlyReturn: true,
  23. )->withPhpSets(php81: true);