Skip to content

Commit 5e92ff6

Browse files
committed
CacheMacro: added warning Modifiers are not allowed here
1 parent d7e4522 commit 5e92ff6

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+
trigger_error('Modifiers are not allowed here.', E_USER_WARNING);
53+
}
5154
$this->used = TRUE;
5255
$node->isEmpty = FALSE;
5356
$node->openingCode = Latte\PhpWriter::using($node)

0 commit comments

Comments
 (0)