Re: Long-Term Planning for PHP 9.0 Error Promotion

From: Date: Thu, 27 Jan 2022 03:52:51 +0000
Subject: Re: Long-Term Planning for PHP 9.0 Error Promotion
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-116935@lists.php.net to get a copy of this message
On 26/01/2022 17:13, Rowan Tommins wrote:
For instance, the following code is safe, useful, and readable: $countsByDayByCategory = []; foreach ( $someData as $item ) {
     $countsByDayByCategory[ $item['day'] ][ $item['category'] ]++;
}
I myself am not planning to hold a vote on undefined array. If there were one it would be an independent vote the same as "Undefined Array Index" in https://wiki.php.net/rfc/engine_warnings which promoted it to warning in 8.0. As it's marked as a warning, I would expect it to still get upgraded at some point in PHPs lifetime, maybe even in PHP 9, but I am not proposing it with this batch of updates. Mark Randall

« previous php.internals (#116935) next »