RFC: new MyClass()->method() without parentheses

Project Governance
Author
Valentin Udaltsov
Target
8.4
The class member access on instantiation feature was introduced in PHP 5.4.0. Since then constants, properties and methods can be accessed on a newly created in...

Allow to omit parentheses around the new expression as described?

Overall Results

Yes
No
Yes
25 Votes (86%)
No
4 Votes (14%)

Voting Timeline

Dates based on UTC

Voting Breakdown