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

Incompatible binary operands #10984

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

jack-worman
Copy link
Contributor

@jack-worman jack-worman commented May 22, 2024

Comparing objects with anything other than identity/equality is already suspect, but let us at least ensure the objects are the same shape.

This came about when I made a custom Date class (no time component) and realized psalm would not complain if I did Date::today() < new \DateTimeImmutable().

@jack-worman jack-worman force-pushed the incompatible-binary-operands branch from f372770 to 2a557cb Compare May 22, 2024 13:33
@jack-worman jack-worman force-pushed the incompatible-binary-operands branch from 6d625b4 to c27f215 Compare May 22, 2024 13:49
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

Successfully merging this pull request may close these issues.

1 participant