8000 minor #63197 PHP CS Fixer: config clenaup (keradus) · symfony/symfony@5568a77 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5568a77

Browse files
minor #63197 PHP CS Fixer: config clenaup (keradus)
This PR was squashed before being merged into the 8.1 branch. Discussion ---------- PHP CS Fixer: config clenaup | Q | A | ------------- | --- | Branch? | 8.1 | Bug fix? | no | New feature? | no <!-- if yes, also update src/**/CHANGELOG.md --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Issues | Fix CS <!-- prefix each issue number with "Fix #"; no need to create an issue if none exists, explain below --> | License | MIT Commits ------- 6e23bf7 PHP CS Fixer: config clenaup
2 parents 6ec070c + 6e23bf7 commit 5568a77

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,15 @@
4444
'/s',
4545
]),
4646
],
47-
'no_useless_else' => true,
48-
'no_useless_return' => true,
4947
'php_unit_attributes' => true,
50-
'protected_to_private' => true,
51-
'random_api_migration' => [
48+
'random_api_migration' => [ // PHP migration awaits
5249
'replacements' => [
5350
'mt_getrandmax' => 'getrandmax',
5451
'mt_rand' => 'random_int',
5552
'mt_srand' => 'srand',
5653
'rand' => 'random_int',
5754
],
5855
],
59-
'static_lambda' => true,
6056
])
6157
->setRuleCustomisationPolicy(new class implements PhpCsFixer\Config\RuleCustomisationPolicyInterface {
6258
public function getPolicyVersionForCache(): string

src/Symfony/Component/Security/Core/Authorization/ExpressionLanguage.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,3 @@ public function __construct(?CacheItemPoolInterface $cache = null, iterable $pro
4242
}
4343
}
4444
}
45-
46-
// @php-cs-fixer-ignore no_useless_else Keep class-declaration inside if-else condition to help OPCache, especially to prevent class declaration if conditional early-exit on runtime is executed

0 commit comments

Comments
 (0)
0