Skip to content

Commit 08bbedc

Browse files
committed
CacheMacro: added CompileException: Modifiers are not allowed here
1 parent c8f6b19 commit 08bbedc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Bridges/CacheLatte/CacheMacro.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public function finalize()
4848
*/
4949
public function nodeOpened(Latte\MacroNode $node)
5050
{
51+
if ($node->modifiers) {
52+
throw new Latte\CompileException('Modifiers are not allowed here.');
53+
}
5154
$this->used = TRUE;
5255
$node->isEmpty = FALSE;
5356
$node->openingCode = Latte\PhpWriter::using($node)

0 commit comments

Comments
 (0)