rector/rector.yaml
2020-04-30 12:27:31 +02:00

36 lines
896 B
YAML

imports:
- { resource: "create-rector.yaml", ignore_errors: 'not_found' }
services:
Rector\Core\Rector\ClassMethod\ChangeContractMethodSingleToManyRector:
$oldToNewMethodByType:
Rector\BetterPhpDocParser\Contract\PhpDocNodeFactoryInterface:
getClass: 'getClasses'
parameters:
# bleeding edge feature
is_cache_enabled: true
auto_import_names: true
paths:
- src
- tests
- rules
- utils
- packages
exclude_paths:
- "/Source/"
- "/*Source/"
- "/Fixture/"
- "/Expected/"
- "packages/Symfony/src/Bridge/DefaultAnalyzedSymfonyApplicationContainer.php"
- "packages/Php/tests/Rector/Name/ReservedObjectRector/*"
# autoload-buggy cases
- "*.php.inc"
# so Rector code is still PHP 7.2 compatible
php_version_features: '7.2'