From 41025e0efc46ad474f03b46dd7d5470e33d63125 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: 2025年10月26日 12:06:43 +0100 Subject: [PATCH] PhpDocStringResolver: Remove useless method call --- src/PhpDoc/PhpDocStringResolver.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/PhpDoc/PhpDocStringResolver.php b/src/PhpDoc/PhpDocStringResolver.php index 30a6e1df0e..f6f1543b4f 100644 --- a/src/PhpDoc/PhpDocStringResolver.php +++ b/src/PhpDoc/PhpDocStringResolver.php @@ -19,10 +19,7 @@ public function __construct(private Lexer $phpDocLexer, private PhpDocParser $ph public function resolve(string $phpDocString): PhpDocNode { $tokens = new TokenIterator($this->phpDocLexer->tokenize($phpDocString)); - $phpDocNode = $this->phpDocParser->parse($tokens); - $tokens->consumeTokenType(Lexer::TOKEN_END); // @phpstan-ignore missingType.checkedException - - return $phpDocNode; + return $this->phpDocParser->parse($tokens); } }

AltStyle によって変換されたページ (->オリジナル) /