Re: [RFC] Warnings for PHP 8.5
| From: | Gina P. Banyard | Date: | Mon, 28 Jul 2025 14:23:15 +0000 |
| Subject: | Re: [RFC] Warnings for PHP 8.5 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-128266@lists.php.net to get a copy of this message | ||
On Monday, 14 July 2025 at 17:20, Gina P. Banyard <internals@gpb.moe> wrote:
> Hello internals,
>
> Similar to the mass deprecation RFC, I would like to propose the addition of a few warnings in
> certain situations:
> https://wiki.php.net/rfc/warnings-php-8-5
>
> I am expecting these 4 sub-proposals to be mostly uncontroversial,
> other than possibly, the "Using offsets on non-container values in isset()/empty()"
> one.
>
> As this is intended to land in PHP 8.5 the discussion will last 2 weeks and voting will
> commence on Monday the 28th of July 2025.
As Claude pointed out a major pitfall, that I wasn't even aware of, I added a new proposal to
the RFC:
"Casting out of range floats to int"
https://wiki.php.net/rfc/warnings-php-8-5#casting_out_of_range_floats_to_int
As I am aware it is in bad taste to shove something new into such a proposal minutes before starting
the vote,
I'll postpone the vote for a few hours so that at least _some_ people can see and raise
objections.
Best regards,
Gina P. Banyard