Skip to content

Commit 61bb049

Browse files
committed
RichParser - required parameter in private method
1 parent aefd71c commit 61bb049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Parser/RichParser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function getLinesToIgnore(array $tokens): array
152152
$isCurrentLine = str_contains($text, '@phpstan-ignore-line');
153153

154154
if ($type === T_DOC_COMMENT) {
155-
$lines += $this->getLinesToIgnoreForTokenByIgnoreComment($text, $line, '@phpstan-ignore-line');
155+
$lines += $this->getLinesToIgnoreForTokenByIgnoreComment($text, $line, '@phpstan-ignore-line', false);
156156
if ($isNextLine) {
157157
$pattern = sprintf('~%s~si', implode('|', [self::PHPDOC_TAG_REGEX, self::PHPDOC_DOCTRINE_TAG_REGEX]));
158158
$r = preg_match_all($pattern, $text, $pregMatches, PREG_OFFSET_CAPTURE);
@@ -242,7 +242,7 @@ private function getLinesToIgnoreForTokenByIgnoreComment(
242242
string $tokenText,
243243
int $tokenLine,
244244
string $ignoreComment,
245-
bool $ignoreNextLine = false,
245+
bool $ignoreNextLine,
246246
): array
247247
{
248248
$lines = [];

0 commit comments

Comments
 (0)