Skip to content

Commit d0a62be

Browse files
PHP CS Fixer: Enable no_superfluous_phpdoc_tags (#29)
1 parent 59f6f09 commit d0a62be

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

php-cs-fixer-rules.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
],
4949
'no_multiline_whitespace_around_double_arrow' => true,
5050
'no_superfluous_elseif' => true,
51+
'no_superfluous_phpdoc_tags' => true,
5152
'no_trailing_comma_in_singleline' => true,
5253
'no_unused_imports' => true,
5354
'no_useless_else' => true,
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* @param string $value
7+
*/
8+
function identity(string $value): string
9+
{
10+
return $value;
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* @return string
7+
*/
8+
function identity(string $value): string
9+
{
10+
return $value;
11+
}

0 commit comments

Comments
 (0)