vimeo/psalm

array_is_list makes the type less specific.

Open

#8,046 opened on 2022年6月2日

GitHub で見る
 (7 comments) (0 reactions) (1 assignee)PHP (668 forks)batch import
Help wantedeasy problemsenhancementgood first issue

Repository metrics

Stars
 (5,369 stars)
PR merge metrics
 (平均マージ 3d 12h) (30d で 5 merged PRs)

説明

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>.

コントリビューターガイド