Skip to content

Commit 846ae76

Browse files
committed
Simplification
1 parent 6b6fdaa commit 846ae76

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Parser/ConstExprParser.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,8 @@ private function parseArray(TokenIterator $tokens, int $endToken, int $startInde
273273
* This method is supposed to be called with TokenIterator after reading TOKEN_DOUBLE_QUOTED_STRING and shifting
274274
* to the next token.
275275
*/
276-
public function parseDoctrineString(string $value, TokenIterator $tokens): Ast\ConstExpr\DoctrineConstExprStringNode
276+
public function parseDoctrineString(string $text, TokenIterator $tokens): Ast\ConstExpr\DoctrineConstExprStringNode
277277
{
278-
$text = $value;
279-
280278
// Because of how Lexer works, a valid Doctrine string
281279
// can consist of a sequence of TOKEN_DOUBLE_QUOTED_STRING and TOKEN_DOCTRINE_ANNOTATION_STRING
282280
while ($tokens->isCurrentTokenType(Lexer::TOKEN_DOUBLE_QUOTED_STRING, Lexer::TOKEN_DOCTRINE_ANNOTATION_STRING)) {

0 commit comments

Comments
 (0)