Everything
php
Learn
Community
Releases
The PHP Project
Learn
Community
Releases
The PHP Project
Home
»
Project
»
RFCs
»
Marking return values as important (#[\NoDiscard])
»
RFC: Marking return values as important (#[\NoDiscard])
Project Governance
Author
timwolla
Author
Volker Dusch
Target
8.5
PHPs error handling mechanism of choice in newer APIs is the use of Exceptions, where forgetting to handle the failure case results in a very obvious error, whe...
Mailing List Discussions
[VOTE] Marking return values as important (#[\NoDiscard])
View Original
Implement the #[\NoDiscard] attribute as described?
Overall Results
Yes
No
Yes
18 Votes (82%)
No
4 Votes (18%)
Voting Timeline
Dates based on UTC
Voting Breakdown
Yes
18 Votes (82%)
alcaeus
girgias
josh
ocramius
ramsey
sergey
theodorejb
derick
galvao
kguest
mbeccati
timwolla
sebastian
asgrim
ashnazg
weierophinney
malferov
reywob
No
4 Votes (18%)
dharman
nicolasgrekas
mcmic
fabpot
Implement the (void) cast to reliably suppress #[\NoDiscard]?
Overall Results
Yes
No
Yes
18 Votes (90%)
No
2 Votes (10%)
Voting Timeline
Dates based on UTC
Voting Breakdown
Yes
18 Votes (90%)
alcaeus
girgias
josh
kalle
ocramius
ramsey
sergey
theodorejb
bwoebi
galvao
kguest
mbeccati
timwolla
sebastian
asgrim
ashnazg
weierophinney
reywob
No
2 Votes (10%)
dharman
mcmic