Skip to content

RFC probability #48

@abramchikd

Description

@abramchikd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions