vimeo/psalm

InvalidArrayOffset ignores @psalm-ignore-nullable-return

Open

#6442 aperta il 6 set 2021

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)PHP (668 fork)batch import
Help wantedbug

Metriche repository

Star
 (5369 star)
Metriche merge PR
 (Merge medio 3g 12h) (5 PR mergiate in 30 g)

Descrizione

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

Guida contributor