mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-10 22:05:44 +00:00
Add #[YieldReady] to allow extensions to tell when they're ready for yielding
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace Twig\Node;
|
||||
|
||||
use Twig\Attribute\YieldReady;
|
||||
use Twig\Compiler;
|
||||
|
||||
/**
|
||||
@@ -18,6 +19,7 @@ use Twig\Compiler;
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
#[YieldReady]
|
||||
class ForLoopNode extends Node
|
||||
{
|
||||
public function __construct(int $lineno, ?string $tag = null)
|
||||
|
||||
Reference in New Issue
Block a user