1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 02:23:18 +02:00
Files
archived-php-src/ext/opcache
Dusk 13c430b1db Add array_is_list(array $array) function
This function tests if an array contains only sequential integer keys. While
list isn't an official type, this usage is consistent with the community usage
of "list" as an annotation type, cf.
https://psalm.dev/docs/annotating_code/type_syntax/array_types/#lists

Rebased and modified version of #4886

- Use .stub.php files
- Add opcache constant evaluation when argument is a constant
- Change from is_list(mixed $value) to array_is_list(array $array)

RFC: https://wiki.php.net/rfc/is_list

Co-Authored-By: Tyson Andre <tysonandre775@hotmail.com>
Co-Authored-By: Dusk <dusk@woofle.net>

Closes GH-6070
2021-01-20 18:53:48 -05:00
..
2021-01-20 11:04:30 +03:00
2021-01-20 10:09:46 +01:00
2020-11-25 11:47:05 +01:00
2019-02-05 10:33:28 +03:00
2020-11-28 13:52:46 +01:00
2020-09-18 14:26:44 -07:00
2019-02-05 10:33:28 +03:00