mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-03 10:27:22 +00:00
Compile the generator guard as an unreachable yield instead of a yield from
This commit is contained in:
@@ -159,7 +159,7 @@ class __TwigTemplate_%x extends Template
|
||||
\$macros = \$this->macros;
|
||||
// line 1
|
||||
yield "foo";
|
||||
yield from [];
|
||||
return; yield;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user