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

Add a note about how macros can override existing functions #4175

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Aug 7, 2024

No description provided.

@fabpot fabpot merged commit 6566066 into twigphp:3.x Aug 7, 2024
11 checks passed
@fabpot fabpot deleted the function-overriding-macro branch August 7, 2024 09:26
@stof
Copy link
Member

stof commented Aug 7, 2024

I think the term used generally for that is shadowing the function (it hides the function from being called, but does not really override the function itself)

fabpot added a commit that referenced this pull request Aug 8, 2024
This PR was merged into the 3.x branch.

Discussion
----------

clarify that macros shadow other macros/functions

see #4175 (comment)

Commits
-------

e1a9448 clarify that macros shadow other macros/functions
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.

2 participants