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

Accept namespaces in sitePassByRefFunctions #351

Merged
merged 5 commits into from
Mar 17, 2025

Conversation

sirbrillig
Copy link
Owner

@sirbrillig sirbrillig commented Mar 16, 2025

This PR modifies the system that looks for pass-by-reference functions so that it will accept namespaced functions. This allows including things like \My\Namespace\doSomething:1 in sitePassByRefFunctions.

One thing to note: even with this change, if you list function_name:1 (without a namespace), it will still match \My\Namespace\function_name(). Changing this behavior would be a breaking change and I'm not sure it's even a good idea since the function may be aliased (eg; use \My\Namespace\function_name).

Fixes #349

Verified

This commit was signed with the committer’s verified signature.
jrfnl Juliette

Verified

This commit was signed with the committer’s verified signature.
jrfnl Juliette

Verified

This commit was signed with the committer’s verified signature.
jrfnl Juliette

Verified

This commit was signed with the committer’s verified signature.
jrfnl Juliette

Verified

This commit was signed with the committer’s verified signature.
jrfnl Juliette
@sirbrillig sirbrillig merged commit 4debf53 into 2.x Mar 17, 2025
64 checks passed
@sirbrillig sirbrillig deleted the accept-namespaces-in-pass-by-ref-functions branch March 17, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sitePassByRefFunctions Doesn't support functions with namespaces
1 participant