Skip to content

Invalid inferred return type of DateTimeImmutable::getTimestamp #7855

@p4veI

Description

@p4veI

Hello I've come across an issue while constructing an array with timestamps used as keys, psalm is reporting false|int can't be used as array key while getTimestamp always returns an int.

e.g. https://psalm.dev/r/c45a9a0a0f

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions