Skip to content

FP: assert(count) on explode() result isn't always true, but PHPStan says it is #3994

@dktapps

Description

@dktapps

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/b13087bc-7cca-4de2-943c-bf7eb9a5885c

Any arbitrary string could be passed here which might not split into 4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions