Skip to content

"too many shorthand attributes" error #568

@TomPavelec

Description

@TomPavelec

Current state

Good examples

When custom template function is called with named argument:

    {funcName arg=argumentValue}

in function body arg can be accessed:

    $arg = $params['arg'];

When more named arguments are passed:

 {funcName arg=argumentValue arg2=argumentValue2}

in function body args can be accessed:

    $arg1 = $params['arg'];
    $arg2 = $params['arg2'];

When more shorthand args are passed:

    {funcName argumentValue argumentValue2}

in function body args can be accessed:

    $arg1 = $params[0];
    $arg2 = $params[1];

Unexpected behavior (BUG)

But when one shorthand arg is passed:

    {funcName argumentValue}

The "too many shorthand attributes" error is triggerd.

Expected behavior

When one shorthand arg is passed (it should be the same as when more shorthand args are passed):

    {funcName argumentValue}

in function body arg can be accessed:

    $arg = $params[0];

Metadata

Metadata

Assignees

No one assigned

    Labels

    waitingWaiting for answer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions