# [VOTE] Add array_is_list(array $array): bool

- Thread: https://externals.io/message/112788
- Original archive: https://news-web.php.net/php.internals/112788
- Started by tyson andre on 2021-01-07T01:31:55+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #112788 — tyson andre — 2021-01-07T01:31:55+00:00

URL: https://externals.io/message/112788#112788

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
