Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9f854d2

Browse files
mvorisekondrejmirtes
authored andcommitted
fix/unify callable template parsing with EOL
1 parent 877b8f2 commit 9f854d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Parser/TypeParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,14 +415,14 @@ public function parseGeneric(TokenIterator $tokens, Ast\Type\IdentifierTypeNode
415415
$isFirst = false;
416416

417417
[$genericTypes[], $variances[]] = $this->parseGenericTypeArgument($tokens);
418+
$tokens->tryConsumeTokenType(Lexer::TOKEN_PHPDOC_EOL);
418419
}
419420

420421
$type = new Ast\Type\GenericTypeNode($baseType, $genericTypes, $variances);
421422
if ($startLine !== null && $startIndex !== null) {
422423
$type = $this->enrichWithAttributes($tokens, $type, $startLine, $startIndex);
423424
}
424425

425-
$tokens->tryConsumeTokenType(Lexer::TOKEN_PHPDOC_EOL);
426426
$tokens->consumeTokenType(Lexer::TOKEN_CLOSE_ANGLE_BRACKET);
427427

428428
return $type;

0 commit comments

Comments
(0)

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