+1
The current behavior is really annoying.
2013/4/22 Florian Anderiasch
> On 04/22/2013 12:55 AM, Robert Stoll wrote:
> > I agree with Igor. The readability could be improved and I do not see the
> > problem of hiding built-in php functions (however, I would not recommend
> > it).
> > I would
It is clear to me that there are valid reasons to say yes to this proposal,
but there are a lot to say no too.
Even if it could be interesting in theory, due to of how PHP handles
collisions between classes and functions names (no check at all),
implementing a callable class could break existing co
nstance = new A();
}
public method m() {}
}
A()->m();
=== Conclusion ===
This feature makes the __invoke() method consistent with the __call() and
__callStatic() methods,
and opens the door to many cool stuff.
Any feedback is appreciated.
Daniele Orlando