Skip to content

Commit a2e54bc

Browse files
committed
Squiz/FunctionCommentThrowTag: improve comment tolerance
Includes test.
1 parent a8053ba commit a2e54bc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,3 +523,11 @@ $anon = new class {
523523
throw new PHP_Exception1('Error');
524524
}
525525
};
526+
527+
528+
/**
529+
* @throws Wrong_Exception
530+
*/
531+
public function ImproveCommentTolerance() {
532+
throw /*comment*/ new /*comment*/ Right_Exception('Error');
533+
}

src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function getErrorList()
4343
287 => 1,
4444
397 => 1,
4545
519 => 1,
46+
530 => 1,
4647
];
4748

4849
}//end getErrorList()

0 commit comments

Comments
 (0)