Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
Latest commit
34 lines (31 loc) · 1.17 KB
/
Copy pathrector.php
File metadata and controls
34 lines (31 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
useRector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
__DIR__.'/src',
__DIR__.'/tests',
])
->withCache(__DIR__.'/var/cache/rector')
// Coding style and import (`use`) management are owned by php-cs-fixer
// (PostToolUse hook / coding standards), so Rector does not touch them.
//
// Modernize to the language level declared in composer.json (PHP >= 8.3).
->withPhpSets()
// Version-based upgrade + quality rules resolved from the installed package
// versions (Symfony 7.4, PHPUnit 13). No domain Doctrine here — the entities
// and migrations live in event-database-imports — so the Doctrine sets are
// intentionally omitted.
->withComposerBased(symfony: true, phpunit: true)
// Convert any remaining annotations to native PHP attributes.
->withAttributesSets(symfony: true, phpunit: true)
->withPreparedSets(
deadCode: true,
codeQuality: true,
typeDeclarations: true,
privatization: true,
instanceOf: true,
earlyReturn: true,
symfonyCodeQuality: true,
phpunitCodeQuality: true,
);