Skip to content

Commit 4f82f18

Browse files
committed
style: clarify exclusion of no_superfluous_phpdoc_tags
1 parent 4629f28 commit 4f82f18

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

IxDFCodingStandard/PhpCsFixer/Rules.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public static function get(): array
8989
'no_short_bool_cast' => true,
9090
'no_singleline_whitespace_before_semicolons' => true,
9191
'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],
92+
// 'no_superfluous_phpdoc_tags' is deliberately NOT enabled: it removes annotations Psalm/PHPStan rely on
93+
// (`@return static` for template resolution, `@return mixed` on magic methods) and cannot be configured to keep them.
9494
'no_trailing_comma_in_singleline' => [
9595
'elements' => ['arguments', 'array', 'group_import'], // excludes 'array_destructuring' enabled by default
9696
],

0 commit comments

Comments
 (0)