As a general user with no actual knowledge of the internals of PHP I cannot foresee any challenges. However, I feel this could be a useful addition to the language itself. There are a lot of times where I've seen code (new MyClass)->method()
which always felt a bit unnecessary.
One thing that feels kinda weird now is the static method part. My question with that one is, will the old behaviour still work?
Example: MyClass::staticMethod()
?
I am interested to learn what the community thinks of the change and how they view it.