Skip to content

Commit f46ab81

Browse files
committed
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.
1 parent 9e034d7 commit f46ab81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/Common/Annotations/DocLexer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* Simple lexer for docblock annotations.
1818
*
19-
* @template-extends AbstractLexer<DocLexer::T_*>
19+
* @template-extends AbstractLexer<DocLexer::T_*, string>
2020
*/
2121
final class DocLexer extends AbstractLexer
2222
{

0 commit comments

Comments
 (0)