Skip to content

Commit

Permalink
PHP CS Fixer: Enable no_superfluous_phpdoc_tags (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
MidnightDesign authored Sep 25, 2023
1 parent 59f6f09 commit d0a62be
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions php-cs-fixer-rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
],
'no_multiline_whitespace_around_double_arrow' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => true,
'no_trailing_comma_in_singleline' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
Expand Down
11 changes: 11 additions & 0 deletions tests/fixtures/invalid/unnecessary-param-annotation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

/**
* @param string $value
*/
function identity(string $value): string
{
return $value;
}
11 changes: 11 additions & 0 deletions tests/fixtures/invalid/unnecessary-return-annotation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

/**
* @return string
*/
function identity(string $value): string
{
return $value;
}

0 comments on commit d0a62be

Please sign in to comment.