vimeo/psalm

InvalidArrayOffset ignores @psalm-ignore-nullable-return

Open

#6,442 opened on Sep 6, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)PHP (668 forks)batch import
Help wantedbug

Repository metrics

Stars
 (5,369 stars)
PR merge metrics
 (Avg merge 3d 12h) (5 merged PRs in 30d)

Description

Hello, guys!

I think InvalidArrayOffset must not be fired for the case of the null array key value if the @psalm-ignore-nullable-return annotation is added to a function.

Code example https://psalm.dev/r/dffed8096a

Contributor guide