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

forward_static_call_array can be used outside of a class too #3282

Open
kkmuffme opened this issue Mar 21, 2024 · 0 comments
Open

forward_static_call_array can be used outside of a class too #3282

kkmuffme opened this issue Mar 21, 2024 · 0 comments
Labels
bug Documentation contains incorrect information Category: Engine

Comments

@kkmuffme
Copy link

https://www.php.net/manual/en/function.forward-static-call.php
https://www.php.net/manual/en/function.forward-static-call-array.php

This function must be called within a method context, it can't be used outside a class.

This isn't true for forward_static_call_array which can be used outside of a class. I'm not sure whether this is a bug/feature of PHP itself, but at least the docs aren't correct for how it works atm.
e.g. https://3v4l.org/Cb8AZ

@Girgias Girgias added bug Documentation contains incorrect information Category: Engine labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Documentation contains incorrect information Category: Engine
Projects
None yet
Development

No branches or pull requests

2 participants