On Mon, Jul 14, 2025, at 18:20, Gina P. Banyard 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. > > Best regards, > > Gina P. Banyard >
Hi Gina, I feel like destructuring `null` should not be the same warning as other types since null auto-vivicates? to [] (an empty array). Instead, it should provide the same warning as https://3v4l.org/8QPiD. — Rob