-
Notifications
You must be signed in to change notification settings - Fork 446
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
More precise mixed-type subtraction #3420
base: 1.12.x
Are you sure you want to change the base?
Conversation
a26a7a0
to
1f9a3bf
Compare
after a break and thinking about your feedback, I came to a new implementation idea :). |
|
||
if ($m != false) { | ||
assertType("mixed~0|0.0|''|'0'|array{}|false|null", $m); | ||
assertType('int<min, -1>|int<1, max>', (int) $m); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
running my new tool thru this test, told me that (int) $m
can still be zero at this point:
we already knew that because ondrey told us - but as of now I can find this errors myself without wasting his time
just reduced this PR to |
realized this nit while looking more into division related types