You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
https://www.php.net/manual/en/function.forward-static-call.php
https://www.php.net/manual/en/function.forward-static-call-array.php
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
The text was updated successfully, but these errors were encountered: