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
Hey! Is there any chance that this will be implemented as and RFC?
I can also think of another method of achieving such functionality: allowing any function to be called as an extension method.
If the left operand of $a->callSomething() is a primitive type or the method on object does not exist and __call is not implemented, then try to execute callSomething as a function and pass $a as a first parameter.
Are there any drawbacks of implementing it this way? I tried to do it myself, but php src seems to be too complicated for me
The text was updated successfully, but these errors were encountered:
Hey! Is there any chance that this will be implemented as and RFC?
I can also think of another method of achieving such functionality: allowing any function to be called as an extension method.
If the left operand of $a->callSomething() is a primitive type or the method on object does not exist and __call is not implemented, then try to execute callSomething as a function and pass $a as a first parameter.
Are there any drawbacks of implementing it this way? I tried to do it myself, but php src seems to be too complicated for me
The text was updated successfully, but these errors were encountered: