Skip to content

Commit ab3772a

Browse files
committed
bug #37020 [ExpressionLanguage] reset the internal state when the parser is finished (xabbuh)
This PR was merged into the 5.1 branch. Discussion ---------- [ExpressionLanguage] reset the internal state when the parser is finished | Q | A | ------------- | --- | Branch? | 5.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- d58eb02 reset the internal state when the parser is finished
2 parents 73fed65 + d58eb02 commit ab3772a

File tree

1 file changed

+3
-0
lines changed
  • src/Symfony/Component/ExpressionLanguage

1 file changed

+3
-0
lines changed

src/Symfony/Component/ExpressionLanguage/Parser.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ private function doParse(TokenStream $stream, ?array $names = []): Node\Node
124124
throw new SyntaxError(sprintf('Unexpected token "%s" of value "%s".', $stream->current->type, $stream->current->value), $stream->current->cursor, $stream->getExpression());
125125
}
126126

127+
$this->stream = null;
128+
$this->names = null;
129+
127130
return $node;
128131
}
129132

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy