Skip to content

Commit 4629f28

Browse files
committed
style: allow mixed phpdoc tags for magic methods in CS config
1 parent 8a4da36 commit 4629f28

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

IxDFCodingStandard/PhpCsFixer/Rules.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +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-
'no_superfluous_phpdoc_tags' => 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],
9394
'no_trailing_comma_in_singleline' => [
9495
'elements' => ['arguments', 'array', 'group_import'], // excludes 'array_destructuring' enabled by default
9596
],

0 commit comments

Comments
 (0)