-
-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
Description
Version: 2.7.3
Bug Description
When attempting to use the (expand) operator to pass array of parameters to {control}, it results in syntax error.
Steps To Reproduce
{var $args = ["label" => "Název"]}
{control myControl, (expand) $args}
Will cause synax error on line 89:
<?php
86: $args = ["label" => "Název"];
87: /* line 25 */ $_tmp = $this->global->uiControl->getComponent("myControl");
88: if ($_tmp instanceof Nette\Application\UI\IRenderable) $_tmp->redrawControl(null, false);
89: $_tmp->render(rray_merge([], $args, []);
?>
Expected Behavior
Should be equivalent to {control myControl, label => "Název"}
Metadata
Metadata
Assignees
Labels
No labels