Skip to content

Commit

Permalink
UIMacros: fixed (expand) in {control) [Closes nette/latte#223]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 20, 2020
1 parent 8827ae2 commit 1923dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bridges/ApplicationLatte/UIMacros.php
Expand Up @@ -99,7 +99,7 @@ public function macroControl(MacroNode $node, PhpWriter $writer)
break;
}
}
if (empty($wrap)) {
if (empty($wrap) && $param[0] === '[') {
$param = substr($param, 1, -1); // removes array() or []
}
return "/* line $node->startLine */ "
Expand Down

0 comments on commit 1923dae

Please sign in to comment.