Skip to content

Psalm thinks explode() can return false #5347

@simPod

Description

@simPod

I have enabled ignoreInternalFunctionFalseReturn="false"

(I cannot do it in playground) https://psalm.dev/r/96ef362b30

explode() returns false when value is empty string.

I asserted the value is not empty string but psalm still reports it can return false

Cannot iterate over falsable var false|non-empty-list

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions