Skip to content

Commit 86d0c2e

Browse files
committed
CacheMacro: added warning Modifiers are not allowed here
1 parent ec6c200 commit 86d0c2e

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)