Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of expand operator results in syntax error #223

Closed
thomasdv opened this issue Apr 4, 2020 · 0 comments
Closed

Use of expand operator results in syntax error #223

thomasdv opened this issue Apr 4, 2020 · 0 comments

Comments

@thomasdv
Copy link

thomasdv commented Apr 4, 2020

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"}

dg added a commit to nette/application that referenced this issue Apr 20, 2020
dg added a commit to nette/application that referenced this issue Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant