Skip to content

"non-falsy-string" is wrong in datetime format for 0 #12965

@mvorisek

Description

@mvorisek

Bug report

introduced in phpstan/phpstan-src#3971

Code snippet that reproduces the problem

https://phpstan.org/r/1afe0ff6-642f-4215-9659-5914fe206418

Expected output

no phpstan error

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