Skip to content

Commit 29e256c

Browse files
committed
Add skip_named_var_tags option for return_assignment fixer
1 parent 046f1f7 commit 29e256c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"php": "^8.3"
1313
},
1414
"require-dev": {
15-
"friendsofphp/php-cs-fixer": "^3.91",
15+
"friendsofphp/php-cs-fixer": "^3.95",
1616
"phpstan/phpstan": "^2.1",
1717
"phpstan/phpstan-strict-rules": "^2.0"
1818
},

lib/PhpCsFixer/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ private function setCodeStyleRules(): void
5656
'phpdoc_align' => false,
5757
'phpdoc_order' => ['order' => ['param', 'throws', 'return']],
5858
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
59+
'return_assignment' => ['skip_named_var_tags' => true],
5960
'single_line_comment_style' => false,
6061
'trailing_comma_in_multiline' => ['elements' => ['arrays', 'arguments', 'match', 'parameters']],
6162
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],

0 commit comments

Comments
 (0)