Skip to content

Commit

Permalink
SlevomatCodingStandard.Commenting.UselessFunctionDocComment: Fixed fa…
Browse files Browse the repository at this point in the history
…lse positive
  • Loading branch information
kukulich committed Jun 25, 2023
1 parent 4166003 commit e76dadc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SlevomatCodingStandard/Helpers/PhpDocParserHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static function getLexer(): Lexer
static $lexer;

if ($lexer === null) {
$lexer = new Lexer();
$lexer = new Lexer(true);
}

return $lexer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,18 @@ public function onlyParameterWithoutType(int $a): void
{
}

/**
* @SomeAnnotation
*/
public function specificAnnotation(): void
{
}

/**
* @\SomeOtherAnnotation
*/
public function specificAnnotationInFQN(): void
{
}

}

0 comments on commit e76dadc

Please sign in to comment.