We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
DateTimeImmutable
$a
$b
You can't user $a === $b for this, because that would always return false. But if you use $a == $b, phpa will complain.
$a === $b
false
$a == $b
phpa
Any suggestions about how to work around this problem?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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 returnfalse
. But if you use$a == $b
,phpa
will complain.Any suggestions about how to work around this problem?
The text was updated successfully, but these errors were encountered: