vimeo/psalm

array_is_list makes the type less specific.

Open

#8 046 ouverte le 2 juin 2022

Voir sur GitHub
 (7 commentaires) (0 réactions) (1 assigné)PHP (668 forks)batch import
Help wantedeasy problemsenhancementgood first issue

Métriques du dépôt

Stars
 (5 369 stars)
Métriques de merge PR
 (Merge moyen 3j 12h) (5 PRs mergées en 30 j)

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

Guide contributeur