vimeo/psalm

array_is_list makes the type less specific.

Aperta

#8046 aperta il 2 giu 2022

 (7 commenti) (0 reazioni) (1 assegnatario)PHP (668 fork)batch import
Help wantedeasy problemsenhancementgood first issue

Metriche repository

Star
 (5369 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor