We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no_superfluous_phpdoc_tags
1 parent 4629f28 commit 4f82f18Copy full SHA for 4f82f18
1 file changed
IxDFCodingStandard/PhpCsFixer/Rules.php
@@ -89,8 +89,8 @@ public static function get(): array
89
'no_short_bool_cast' => true,
90
'no_singleline_whitespace_before_semicolons' => true,
91
'no_spaces_around_offset' => true,
92
- // allow_mixed: keep `@return mixed` on magic methods (__call etc.), PHPCS requires at least a @return annotation there
93
- 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
+ // 'no_superfluous_phpdoc_tags' is deliberately NOT enabled: it removes annotations Psalm/PHPStan rely on
+ // (`@return static` for template resolution, `@return mixed` on magic methods) and cannot be configured to keep them.
94
'no_trailing_comma_in_singleline' => [
95
'elements' => ['arguments', 'array', 'group_import'], // excludes 'array_destructuring' enabled by default
96
],
0 commit comments