Skip to content

Commit

Permalink
RichParser - required parameter in private method
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 14, 2024
1 parent aefd71c commit 61bb049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parser/RichParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private function getLinesToIgnore(array $tokens): array
$isCurrentLine = str_contains($text, '@phpstan-ignore-line');

if ($type === T_DOC_COMMENT) {
$lines += $this->getLinesToIgnoreForTokenByIgnoreComment($text, $line, '@phpstan-ignore-line');
$lines += $this->getLinesToIgnoreForTokenByIgnoreComment($text, $line, '@phpstan-ignore-line', false);
if ($isNextLine) {
$pattern = sprintf('~%s~si', implode('|', [self::PHPDOC_TAG_REGEX, self::PHPDOC_DOCTRINE_TAG_REGEX]));
$r = preg_match_all($pattern, $text, $pregMatches, PREG_OFFSET_CAPTURE);
Expand Down Expand Up @@ -242,7 +242,7 @@ private function getLinesToIgnoreForTokenByIgnoreComment(
string $tokenText,
int $tokenLine,
string $ignoreComment,
bool $ignoreNextLine = false,
bool $ignoreNextLine,
): array
{
$lines = [];
Expand Down

0 comments on commit 61bb049

Please sign in to comment.