-
-
Notifications
You must be signed in to change notification settings - Fork 712
Closed
Labels
waitingWaiting for answerWaiting for answer
Description
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
Labels
waitingWaiting for answerWaiting for answer