vimeo/psalm

array_is_list makes the type less specific.

Open

#8.046 aberto em 2 de jun. de 2022

Ver no GitHub
 (7 comments) (0 reactions) (1 assignee)PHP (668 forks)batch import
Help wantedeasy problemsenhancementgood first issue

Métricas do repositório

Stars
 (5.369 stars)
Métricas de merge de PR
 (Mesclagem média 3d 12h) (5 fundiu PRs em 30d)

Description

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

Guia do colaborador