diff --git a/src/Tokenizer/Analyzer/CommentsAnalyzer.php b/src/Tokenizer/Analyzer/CommentsAnalyzer.php index f713e83e02c..cfda768a939 100644 --- a/src/Tokenizer/Analyzer/CommentsAnalyzer.php +++ b/src/Tokenizer/Analyzer/CommentsAnalyzer.php @@ -113,6 +113,7 @@ public function isBeforeStructuralElement(Tokens $tokens, int $index): bool * Return array of indices that are part of a comment started at given index. * * @param int $index T_COMMENT index + * * @return list */ public function getCommentBlockIndices(Tokens $tokens, int $index): array diff --git a/tests/Tokenizer/TokensTest.php b/tests/Tokenizer/TokensTest.php index f388bb96408..0b696f66176 100644 --- a/tests/Tokenizer/TokensTest.php +++ b/tests/Tokenizer/TokensTest.php @@ -743,7 +743,7 @@ public function testFindBlockEndInvalidType(): void $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessageMatches('/^Invalid param type: "-1"\.$/'); - /** @phpstan-ignore-next-line */ + // @phpstan-ignore-next-line $tokens->findBlockEnd(-1, 0); }