-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make handle @param duplicates and word boundaries correct
- Loading branch information
Showing
3 changed files
with
73 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/Fixer/Commenting/ParamReturnAndVarTagMalformsFixer/Fixture/wrong11.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
An existing @param is incorrectly duplicated. | ||
<?php | ||
|
||
/** | ||
* @param string $one | ||
* @param string $one | ||
*/ | ||
function someFunction($one, $two): void | ||
{ | ||
} | ||
?> | ||
----- | ||
An existing @param is incorrectly duplicated. | ||
<?php | ||
|
||
/** | ||
* @param string $one | ||
* @param string $two | ||
*/ | ||
function someFunction($one, $two): void | ||
{ | ||
} | ||
?> |
25 changes: 25 additions & 0 deletions
25
tests/Fixer/Commenting/ParamReturnAndVarTagMalformsFixer/Fixture/wrong12.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Wrong @param name is a substring of another param. | ||
<?php | ||
|
||
/** | ||
* @param string $foooo | ||
* @param string $fooooo | ||
* @param string $foooooo | ||
*/ | ||
function someFunction($foo, $fooo): void | ||
{ | ||
} | ||
?> | ||
----- | ||
Wrong @param name is a substring of another param. | ||
<?php | ||
|
||
/** | ||
* @param string $foo | ||
* @param string $fooo | ||
* @param string $foooooo | ||
*/ | ||
function someFunction($foo, $fooo): void | ||
{ | ||
} | ||
?> |