Skip to content

Commit 41025e0

Browse files
committed
PhpDocStringResolver: Remove useless method call
1 parent 326d512 commit 41025e0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/PhpDoc/PhpDocStringResolver.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ public function __construct(private Lexer $phpDocLexer, private PhpDocParser $ph
1919
public function resolve(string $phpDocString): PhpDocNode
2020
{
2121
$tokens = new TokenIterator($this->phpDocLexer->tokenize($phpDocString));
22-
$phpDocNode = $this->phpDocParser->parse($tokens);
23-
$tokens->consumeTokenType(Lexer::TOKEN_END); // @phpstan-ignore missingType.checkedException
24-
25-
return $phpDocNode;
22+
return $this->phpDocParser->parse($tokens);
2623
}
2724

2825
}

0 commit comments

Comments
 (0)