-
Notifications
You must be signed in to change notification settings - Fork 119
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
[false-positive] 'type unsafe comparison' on DateTime objects #19
Comments
I've checked php sources, there are special comparators for |
And most likely classes extending above ones have the same comparators (but it should be checked, seems it is not explained in docs). |
@dryabov : huge thanks for your research, PHP is keeping to surprise me. |
I've noticed "type unsafe comparison" showing up on DateTime objects as of right now, had this regressed since or something? |
@Rarst: would you please create a new issue for your case? |
You can't check DateTime equality, but php allows them to compare using ==, > and <.
The text was updated successfully, but these errors were encountered: