Skip to content

Clarify forward_static_call() documentation#5681

Open
zonuexe wants to merge 1 commit into
php:masterfrom
zonuexe:clarify-forward-static-call-docs
Open

Clarify forward_static_call() documentation#5681
zonuexe wants to merge 1 commit into
php:masterfrom
zonuexe:clarify-forward-static-call-docs

Conversation

@zonuexe

@zonuexe zonuexe commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The forward_static_call() and forward_static_call_array() descriptions implied that these functions simply call static methods.

This clarifies that they call a callback while preserving the current called class for method callbacks, making them useful for static method callbacks that should behave like forwarding calls such as parent:: or self::.

The forward_static_call_array() parameter note is also updated to match call_user_func_array(): parameters can be passed by reference when the corresponding element in the args array is a reference.

I am not a native English speaker, so I do not have strong preferences about the exact wording or nuance.

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.

2 participants