mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-10 05:45:50 +00:00
fix: #4029 when use_yield is true CaptureNode use iterator_to_array preserveKeys argument to false
This commit is contained in:
@@ -57,7 +57,7 @@ EOF
|
||||
// line 1
|
||||
\$context["foo"] = ('' === \$tmp = implode('', iterator_to_array((function () use (&\$context, \$macros, \$blocks) {
|
||||
yield "foo";
|
||||
})() ?? new \EmptyIterator()))) ? '' : new Markup(\$tmp, \$this->env->getCharset());
|
||||
})() ?? new \EmptyIterator(), false))) ? '' : new Markup(\$tmp, \$this->env->getCharset());
|
||||
EOF
|
||||
, new Environment(new ArrayLoader()),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user