From 51a94be1953392ef36bfbeb5776468ef8765138e Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 2 Dec 2022 22:32:08 +0100 Subject: [PATCH] Latte: added getIterator() to Nodes --- src/Bridges/ApplicationLatte/Nodes/NNonceNode.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Bridges/ApplicationLatte/Nodes/NNonceNode.php b/src/Bridges/ApplicationLatte/Nodes/NNonceNode.php index d5a04253b..04176f4b8 100644 --- a/src/Bridges/ApplicationLatte/Nodes/NNonceNode.php +++ b/src/Bridges/ApplicationLatte/Nodes/NNonceNode.php @@ -28,4 +28,10 @@ public function print(PrintContext $context): string { return 'echo $this->global->uiNonce ? " nonce=\"{$this->global->uiNonce}\"" : "";'; } + + + public function &getIterator(): \Generator + { + false && yield; + } }