vimeo/psalm

Psalm doesn't notice session_unset()

Open

#9,198 opened on Jan 29, 2023

View on GitHub
 (2 comments) (0 reactions) (0 assignees)PHP (5,369 stars) (668 forks)batch import
Help wantedeasy problemsenhancement

Description

For example: https://psalm.dev/r/c1dc7af1fb

When the session is cleared by setting it to an empty array Psalm is aware that the key doesn't exist, but if the same is done using session_unset() Psalm doesn't notice this fact.

Contributor guide