Skip to content

Commit 7b2d29f

Browse files
minor #61332 Cleanup .php-cs-fixer.dist.php (nicolas-grekas)
This PR was merged into the 7.4 branch. Discussion ---------- Cleanup .php-cs-fixer.dist.php | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Better have a few false-positives than missing an important change (esp a phpunit attribute) Commits ------- 5d4e211 Cleanup .php-cs-fixer.dist.php
2 parents 9aa1c0f + 5d4e211 commit 7b2d29f

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,8 @@
2828
];
2929

3030
return (new PhpCsFixer\Config())
31-
// @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7777
3231
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
3332
->setRules([
34-
'@PHP71Migration' => true,
35-
'@PHPUnit75Migration:risky' => true,
3633
'@Symfony' => true,
3734
'@Symfony:risky' => true,
3835
'phpdoc_var_annotation_correct_order' => true,
@@ -61,25 +58,13 @@
6158
'Symfony/Component/Emoji/Resources/',
6259
'Symfony/Component/Intl/Resources/data/',
6360
])
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')
6761
// Support for older PHPunit version
68-
->notPath('Symfony/Bridge/PhpUnit/SymfonyTestsListener.php')
6962
->notPath('#Symfony/Bridge/PhpUnit/.*Mock\.php#')
7063
->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')
7564
// disable to not apply `native_function_invocation` rule, as we explicitly break it for testability reason, ref https://github.com/symfony/symfony/pull/59195
7665
->notPath('Symfony/Component/Mailer/Transport/NativeTransportFactory.php')
7766
// 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#')
8368
// svg
8469
->notPath('Symfony/Component/ErrorHandler/Resources/assets/images/symfony-ghost.svg.php')
8570
// HTML templates

0 commit comments

Comments
 (0)