|
28 | 28 | ]; |
29 | 29 |
|
30 | 30 | return (new PhpCsFixer\Config()) |
31 | | - // @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7777 |
32 | 31 | ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) |
33 | 32 | ->setRules([ |
34 | | - '@PHP71Migration' => true, |
35 | | - '@PHPUnit75Migration:risky' => true, |
36 | 33 | '@Symfony' => true, |
37 | 34 | '@Symfony:risky' => true, |
38 | 35 | 'phpdoc_var_annotation_correct_order' => true, |
|
61 | 58 | 'Symfony/Component/Emoji/Resources/', |
62 | 59 | 'Symfony/Component/Intl/Resources/data/', |
63 | 60 | ]) |
64 | | - // explicit tests for ommited @param type, against `no_superfluous_phpdoc_tags` |
65 | | - ->notPath('Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php') |
66 | | - ->notPath('Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php') |
67 | 61 | // Support for older PHPunit version |
68 | | - ->notPath('Symfony/Bridge/PhpUnit/SymfonyTestsListener.php') |
69 | 62 | ->notPath('#Symfony/Bridge/PhpUnit/.*Mock\.php#') |
70 | 63 | ->notPath('#Symfony/Bridge/PhpUnit/.*Legacy#') |
71 | | - // explicit trigger_error tests |
72 | | - ->notPath('Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php') |
73 | | - // stop removing spaces on the end of the line in strings |
74 | | - ->notPath('Symfony/Component/Messenger/Tests/Command/FailedMessagesShowCommandTest.php') |
75 | 64 | // disable to not apply `native_function_invocation` rule, as we explicitly break it for testability reason, ref https://github.com/symfony/symfony/pull/59195 |
76 | 65 | ->notPath('Symfony/Component/Mailer/Transport/NativeTransportFactory.php') |
77 | 66 | // auto-generated proxies |
78 | | - ->notPath('Symfony/Component/Cache/Traits/RelayProxy.php') |
79 | | - ->notPath('Symfony/Component/Cache/Traits/Redis5Proxy.php') |
80 | | - ->notPath('Symfony/Component/Cache/Traits/Redis6Proxy.php') |
81 | | - ->notPath('Symfony/Component/Cache/Traits/RedisCluster5Proxy.php') |
82 | | - ->notPath('Symfony/Component/Cache/Traits/RedisCluster6Proxy.php') |
| 67 | + ->notPath('#Symfony/Component/Cache/Traits/Re.*Proxy\.php#') |
83 | 68 | // svg |
84 | 69 | ->notPath('Symfony/Component/ErrorHandler/Resources/assets/images/symfony-ghost.svg.php') |
85 | 70 | // HTML templates |
|
0 commit comments