vimeo/psalm

array_is_list makes the type less specific.

开放

#8,046 创建于 2022年6月2日

 (7 条评论) (0 个反应) (1 位负责人)PHP (668 个派生)batch import
Help wantedeasy problemsenhancementgood first issue

仓库指标

星标
 (5,369 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

https://psalm.dev/r/ffab419792

The test1 function passes the test successfully.

Errors are generated for the test2 function because array_is_list turns the $arr type into a non-empty-list<array<array-key, string>|string>.

贡献者指南