Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpa complains about comparing DateTimeImmutable #35

Open
johanv opened this issue Apr 11, 2019 · 0 comments
Open

phpa complains about comparing DateTimeImmutable #35

johanv opened this issue Apr 11, 2019 · 0 comments

Comments

@johanv
Copy link

johanv commented Apr 11, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant