I know historically there is internal "next free index variable", but array with 0...n-1 keys should stay list even when some key/value is added. using [] operator.
Related with https://github.com/phpstan/phpstan/issues/11628 as array_is_list($v) should imply list and such list must maintain list behaviour when value is appended/unset to/from the end.
Description
repro: https://3v4l.org/fV80Z
I know historically there is internal "next free index variable", but array with 0...n-1 keys should stay list even when some key/value is added. using
[]
operator.Related with https://github.com/phpstan/phpstan/issues/11628 as
array_is_list($v)
should implylist
and such list must maintain list behaviour when value is appended/unset to/from the end.