Skip to content

Commit

Permalink
Specify second template parameter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
greg0ire committed Dec 14, 2022
1 parent 9e034d7 commit f46ab81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/Annotations/DocLexer.php
Expand Up @@ -16,7 +16,7 @@
/**
* Simple lexer for docblock annotations.
*
* @template-extends AbstractLexer<DocLexer::T_*>
* @template-extends AbstractLexer<DocLexer::T_*, string>
*/
final class DocLexer extends AbstractLexer
{
Expand Down

0 comments on commit f46ab81

Please sign in to comment.