From f46ab81058ca5b5ec9ea9b22bd34eee01aa3b9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Wed, 14 Dec 2022 19:49:13 +0100 Subject: [PATCH] Specify second template parameter The by-ref $value parameter is modified in DocLexer::getType(), but not its type, which stays a string. This guarantee that the token value will always be a string. --- lib/Doctrine/Common/Annotations/DocLexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Common/Annotations/DocLexer.php b/lib/Doctrine/Common/Annotations/DocLexer.php index dbf60c0d5..dbba52522 100644 --- a/lib/Doctrine/Common/Annotations/DocLexer.php +++ b/lib/Doctrine/Common/Annotations/DocLexer.php @@ -16,7 +16,7 @@ /** * Simple lexer for docblock annotations. * - * @template-extends AbstractLexer + * @template-extends AbstractLexer */ final class DocLexer extends AbstractLexer {