From 98b6c0afb305469d449cba686518b75c9ddd1d21 Mon Sep 17 00:00:00 2001 From: Jeremiasz Major Date: Fri, 18 Feb 2022 16:24:43 +0100 Subject: [PATCH] formatting --- src/Tokenizer/Analyzer/CommentsAnalyzer.php | 1 + tests/Tokenizer/TokensTest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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); }