Skip to content
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

clarify that macros shadow other macros/functions #4181

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

xabbuh
Copy link
Contributor

@xabbuh xabbuh commented Aug 8, 2024

@fabpot
Copy link
Contributor

fabpot commented Aug 8, 2024

Thank you @xabbuh.

@fabpot fabpot merged commit 9252578 into twigphp:3.x Aug 8, 2024
76 checks passed
@@ -75,7 +75,7 @@ via the ``from`` tag:
.. caution::

As macros imported via ``from`` are called like functions, be careful to
not override existing functions:
not shadow existing functions:
Copy link
Member

Choose a reason for hiding this comment

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

I suggest saying be careful that they shadow existing functions (the current wording makes it look like it is an issue to perform such shadowing, but if you don't intent to use the function, there is no issue)

Copy link
Contributor

Choose a reason for hiding this comment

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

Done

@xabbuh xabbuh deleted the pr-4175 branch August 8, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants