10000 minor #28780 [CS] Enable phpdoc_types_order (carusogabriel) · dunglas/symfony@46d9724 · GitHub
[go: up one dir, main page]

Skip to content

Commit 46d9724

Browse files
committed
minor symfony#28780 [CS] Enable phpdoc_types_order (carusogabriel)
This PR was merged into the 2.8 branch. Discussion ---------- [CS] Enable phpdoc_types_order | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | - <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | - As suggested by @jvasseur in symfony#28675 (comment), we can use the `phpdoc_types_order` rule from PHP-CS-Fixer to ensure that `null` is always on the last position in phpDocs as proposed in symfony#28675. Commits ------- c340502 [CS] Enable phpdoc_types_order
2 parents c57e4e1 + c340502 commit 46d9724

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.php_cs.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ return PhpCsFixer\Config::create()
1919
'self_accessor' => false,
2020
// Part of @Symfony:risky in PHP-CS-Fixer 2.13.0. To be removed from the config file once upgrading
2121
'native_function_invocation' => array('include' => array('@compiler_optimized'), 'scope' => 'namespaced'),
22+
// Part of future @Symfony ruleset in PHP-CS-Fixer To be removed from the config file once upgrading
23+
'phpdoc_types_order' => array('null_adjustment' => 'always_last', 'sort_algorithm' => 'none'),
2224
))
2325
->setRiskyAllowed(true)
2426
->setFinder(

0 commit comments

Comments
 (0)
0