Skip to content

Conversation

ThomasLandauer
Copy link
Contributor

Page: https://symfony.com/doc/current/templates.html#create-the-extension-class

Isn't there a best practice somewhere to always pass the parameter's name explicitly?

Page: https://symfony.com/doc/current/templates.html#create-the-extension-class

Isn't there a best practice somewhere to always pass the name explicitly?
@carsonbot carsonbot changed the title [Templating]: Adding named attribute arguments [Templating] : Adding named attribute arguments May 30, 2025
Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to not add the argument name explicitly in these examples because, in my opinion, the code is already clear and self-explanatory.

@javiereguiluz javiereguiluz added this to the 7.3 milestone Jun 3, 2025
@javiereguiluz
Copy link
Member

Let's close this as "won't merge" for now ... and we can reconsider this in the future if we receive comments or issues about this. Thanks!

@ThomasLandauer ThomasLandauer deleted the patch-25 branch June 19, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants