Skip to content

phpa complains about comparing DateTimeImmutable #35

Description

@johanv

Suppose I have two DateTimeImmutable objects, let's say $a and $b, and I want to check whether they are referring to the same point in time.

You can't user $a === $b for this, because that would always return false. But if you use $a == $b, phpa will complain.

Any suggestions about how to work around this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions