Re: Re: RFC: Marking return values as important (#[\NoDiscard])

From: Date: Fri, 14 Feb 2025 12:09:00 +0000
Subject: Re: Re: RFC: Marking return values as important (#[\NoDiscard])
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 14.02.2025 12:57, Derick Rethans wrote:
None of the current attributes (ReturnTypeWillChange, AllowDynamicProperties, SensitiveParameter, Override, and Deprecated) change the behaviour of how a program runs. They only add warnings. with the exception of AllowDynamicProperties to be an actual 'feature' in PHP 9.0 (now it's only a deprecation warning silencer).
For clarity, it's not AllowDynamicProperties attribute throwing an exception in PHP9, it's use of a "dynamic" property on an object not marked with this attribute. So, I'm not sure it's a valid exception to the rule. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com

Thread (48 messages)

« previous php.internals (#126407) next »