Skip to content

Commit 5283b9a

Browse files
authored
Merge pull request to fix incompatibility with Twig v3.21
Redefines ForeachTokenParser::parseAssignmentExpression slightly to account for new protected function of the same name.
2 parents b71c2b5 + 2e31972 commit 5283b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TokenParser/ForeachTokenParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getTag(): string
6666
/*
6767
* Taken from ExpressionParser::parseAssignmentExpression, we just exchanged the operator usage from , to =>
6868
*/
69-
private function parseAssignmentExpression(): Node
69+
protected function parseAssignmentExpression(): Nodes
7070
{
7171
$stream = $this->parser->getStream();
7272
$targets = [];

0 commit comments

Comments
 (0)