Sent from my iPhone
On 1 Jul 2024, at 09:03, Richard Miles <richard@miles.systems> wrote:



There even was an RFC in voting which Joe implemented and it addresses nearly what is discussed it this thread https://wiki.php.net/rfc/arrayof

The link above has broken page links to the mailing list. I’ve found the externals.io history and have given it a read:


It seems like everyone always gets really hung up on generics! That or how to syntactically implement this.


Hi

Given other improvements in the language, I don't really see much need for the ability to specify fixed keys and their types (ie associative arrays) (I assume that's what the "['a' => string]" syntax is meant to be?)

Is there some fundamental aspect of the original arrayof RFC that prevents it from being revived today? The whole "does it include nulls" part is moot now presumably because we have both ? And |null, and the Type[] syntax is very common in docblocks.

Cheers

Stephen  

Reply via email to