Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 46d9724

Browse filesBrowse files
committed
minor #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 #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 #28675. Commits ------- c340502 [CS] Enable phpdoc_types_order
2 parents c57e4e1 + c340502 commit 46d9724
Copy full SHA for 46d9724

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎.php_cs.dist

Copy file name to clipboardExpand all lines: .php_cs.dist
+2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.