Re: [RFC] Deprecations for PHP 8.5
| From: | Claude Pache | Date: | Fri, 04 Jul 2025 09:10:54 +0000 |
| Subject: | Re: [RFC] Deprecations for PHP 8.5 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127875@lists.php.net to get a copy of this message | ||
> Le 2 juil. 2025 à 21:56, Gina P. Banyard <internals@gpb.moe> a écrit :
>
> It is this time of year again where we proposed a list of deprecations to add in PHP 8.5:
>
> https://wiki.php.net/rfc/deprecations_php_8_5
Hi,
To reduce noise, I’ll be short.
General remark: For each deprecation, please research first if it’ll break code without easy
replacement. Then, please provide an explicit deprecation message that will point to an alternative.
Some cases:
* __construct() in interface. Useful feature, see: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
* FILTER_CALLBACK: Useful in filter_var_array, as pointed by Rowan: https://externals.io/message/127849#127855
* filter_input(), filter_input_array(), and filter_has_var(): What if I want to operate on the
original values of the superglobals?
—Claude