wotta's avatar

Wouter (wotta)

wotta

Member since

25

Total Reputation

1

Total Arguments

1

Total Votes for Arguments

Arguments and votes

2

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.

Share:
Read the RFC: new MyClass()->method() without parentheses wotta avatar
wotta
voted yes
RSS Feed Contribute Watch on YouTube Our License
© 2024 RFC Vote. This project is open source. Contribute and collaborate with us!