-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
What is the purpose of the first argument of the map filter? #3160
Comments
This looks like a mistake in the doc. The PHP function indeed has the array as first argument, but this is indeed the value being filtered. |
OK, that's what I assumed. I'm reviewing the whole functions and filters doc to make sure that Twing support for named arguments is correct. And I couldn't find a fit for |
Same issue with |
ericmorand
added a commit
to ericmorand/Twig
that referenced
this issue
Oct 1, 2019
fabpot
pushed a commit
to ericmorand/Twig
that referenced
this issue
Oct 1, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://twig.symfony.com/doc/2.x/filters/map.html
The doc of the map filter declare on argument named
array
:What is its purpose? Isn't it the value that the filter is applied to? If so it shouldn't be part of the documentation arguments.
The text was updated successfully, but these errors were encountered: