Skip to content

Commit 22f7c1d

Browse files
committed
UIMacros: added CompileException: Modifiers are not allowed here
1 parent de6ddac commit 22f7c1d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Bridges/ApplicationLatte/UIMacros.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public function macroLink(MacroNode $node, PhpWriter $writer)
9898
*/
9999
public function macroIfCurrent(MacroNode $node, PhpWriter $writer)
100100
{
101+
if ($node->modifiers) {
102+
throw new CompileException('Modifiers are not allowed here.');
103+
}
101104
return $writer->write($node->args
102105
? 'if ($_presenter->isLinkCurrent(%node.word, %node.array?)) {'
103106
: 'if ($_presenter->getLastCreatedRequestFlag("current")) {'

0 commit comments

Comments
 (0)