7 comments (7 comments)0 reactions (0 reactions)1 assignee (1 assignee)PHP668 forks (668 forks)batch import
Help wantedeasy problemsenhancementgood first issue
Repository metrics
- Stars
- 5,369 stars (5,369 stars)
- PR merge metrics
- Avg merge 3d 12h (Avg merge 3d 12h)5 merged PRs in 30d (5 merged PRs in 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>.
Contributor guide
- Research direction
- Investigate the type narrowing logic in Psalm for array is list. Focus on how the function call affects the type of the array variable and ensure that the original type is preserved appropriately.
- Tech stack
- php
- Domain
- tooling
- Issue type
- Bug
- Prerequisites
- PHPGit