Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab3772a

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 parents73fed65 +d58eb02 commitab3772a

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
thrownewSyntaxError(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)

[8]ページ先頭

©2009-2025 Movatter.jp