[VOTE] Add array_is_list(array $array): bool
| From: | tyson andre | Date: | Thu, 07 Jan 2021 01:31:55 +0000 |
| Subject: | [VOTE] Add array_is_list(array $array): bool | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-112788@lists.php.net to get a copy of this message | ||
Hi internals,
Voting on https://wiki.php.net/rfc/is_list has
started. The vote closes on 2020-01-20.
After discussion, the function name and signature was changed to
array_is_list(array $array):
bool
to avoid confusion with the possibility of earlier name choices conflicting with hypothetical future
list-like types,
and to make it obvious that using it on an ArrayObject/SplDoublyLinkedList is probably a mistake
(throw an ordinary parameter TypeError for non-arrays).
- See https://externals.io/message/112560#112757
Thanks,
-Tyson