Skip to content

Use of expand operator results in syntax error #223

@thomasdv

Description

@thomasdv

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions