On Mon, 14 Jul 2025, Gina P. Banyard wrote:

> 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.

That one seems to miss examples in the RFC as well. It might be useful 
to add those.

Having said that, I am unsure as why I would want to see a way how 
isset/empty behave in either the "using offsets on non-container values" 
or "using invalid offset types" cases. These language constructs are 
often used as a guard in (albeit likely older *code*), and hence, this 
now throwing a warning doesn't really add anything for the developer.

I'm also curious to know whether you or somebody else has checked what 
the effect of this change on existing code bases would be?

cheers,
Derick

-- 
https://derickrethans.nl | https://xdebug.org | https://dram.io

Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/support

mastodon: @derickr@phpc.social @xdebug@phpc.social

Reply via email to