Everything
php
Learn
Community
Releases
The PHP Project
Learn
Community
Releases
The PHP Project
Home
»
Project
»
RFCs
»
new MyClass()->method() without parentheses
»
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...
Mailing List Discussions
[RFC] [Discussion] new MyClass()->method() without parentheses
[RFC][Vote] new MyClass()->method() without parentheses
View Original
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
Yes
25 Votes (86%)
alcaeus
crell
dharman
ocramius
ramsey
santiagolizardo
sergey
theodorejb
trowski
beberlei
bukka
bwoebi
derick
jimw
kguest
mbeccati
thekid
nicolasgrekas
ilutov
asgrim
ashnazg
weierophinney
petk
wyrihaximus
ralphschindler
No
4 Votes (14%)
alec
kalle
galvao
timwolla