You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All optional node dependencies installed via Composer
Configured expression language is javascript, but it also applies to php-style expressions
Description
When I write a mixin and make it take some arguments, I see the following error: "Notice: Undefined offset: 1". It derives from line 199 of trait HelpersHandler, inside a method interpolateTwigFunctions.
There are some cases when it does not occur, for example:
mixin withoutParentheses
p foo
mixin withParentheses()
p bar
However, it occurs if an argument is defined – even if the mixin was not actually called or the argument was not used inside the mixin body. For example, this snippet from the documentation does not work:
mixin pet(name)
li.pet= name
ul
+pet('cat')
+pet('dog')
+pet('pig')
The text was updated successfully, but these errors were encountered:
Environment
Description
When I write a mixin and make it take some arguments, I see the following error: "Notice: Undefined offset: 1". It derives from line 199 of trait HelpersHandler, inside a method
interpolateTwigFunctions
.There are some cases when it does not occur, for example:
However, it occurs if an argument is defined – even if the mixin was not actually called or the argument was not used inside the mixin body. For example, this snippet from the documentation does not work:
The text was updated successfully, but these errors were encountered: