Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit PhanCommentDuplicate* on comment line
Fixes #3636
- Loading branch information
1 parent
708c9e6
commit d93091a
Showing
7 changed files
with
26 additions
and
12 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
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
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
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
2 changes: 1 addition & 1 deletion
2
tests/files/expected/0611_comment_duplicated_param.php.expected
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 |
---|---|---|
@@ -1 +1 @@ | ||
%s:10 PhanCommentDuplicateParam Comment declares @param $var multiple times | ||
%s:7 PhanCommentDuplicateParam Comment declares @param $var multiple times |
6 changes: 3 additions & 3 deletions
6
tests/files/expected/0612_comment_duplicated_property.php.expected
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
%s:11 PhanCommentDuplicateMagicProperty Comment declares @property* $intReadProperty multiple times | ||
%s:11 PhanCommentDuplicateMagicProperty Comment declares @property* $mixedProperty multiple times | ||
%s:11 PhanCommentDuplicateMagicProperty Comment declares @property* $stringWriteProperty multiple times | ||
%s:5 PhanCommentDuplicateMagicProperty Comment declares @property* $intReadProperty multiple times | ||
%s:7 PhanCommentDuplicateMagicProperty Comment declares @property* $mixedProperty multiple times | ||
%s:9 PhanCommentDuplicateMagicProperty Comment declares @property* $stringWriteProperty multiple times |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
%s:10 PhanCommentDuplicateParam Comment declares @param $c multiple times | ||
%s:8 PhanCommentDuplicateParam Comment declares @param $c multiple times | ||
%s:10 PhanUndeclaredTypeParameter Parameter $b has undeclared type array<int,\NS781\stdClass> (Did you mean class \stdClass) | ||
%s:11 PhanUnusedVariable Unused definition of variable $val | ||
%s:12 PhanTypeMismatchArgumentInternal Argument 1 ($obj) is $a['Closure']() of type int but \spl_object_hash() takes object | ||
%s:13 PhanTypeMismatchArgumentInternal Argument 1 ($obj) is $cb() of type void but \spl_object_hash() takes object | ||
%s:14 PhanTypeMismatchArgumentInternal Argument 1 ($obj) is $b of type array{0:\NS781\stdClass} but \spl_object_hash() takes object | ||
%s:15 PhanTypeMismatchArgumentInternal Argument 1 ($obj) is $c of type array{0:'',1:array<int,string>,2:'1'} but \spl_object_hash() takes object | ||
%s:15 PhanTypeMismatchArgumentInternal Argument 1 ($obj) is $c of type array{0:'',1:array<int,string>,2:'1'}|array{0:0} but \spl_object_hash() takes object |