Comparing a nullable DateTime with a non-nullable DateTime reports method call on null #10713
-
I'm a seasoned PHP developer, and I can understand why phpstan would complain about the comparison of |
Beta Was this translation helpful? Give feedback.
Answered by
ondrejmirtes
Mar 14, 2024
Replies: 1 comment 4 replies
-
PHPStan does not understand you're eliminating Let's make that explicit: https://phpstan.org/r/89a668f0-4fe2-4121-bde5-a4db8074a572 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What you're experiencing is simply some kind of ommission in TypeSpecifier.php that should be fixed.