-
Notifications
You must be signed in to change notification settings - Fork 665
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
int range returns incorrect result for pow #10965
Comments
I found these snippets: https://psalm.dev/r/05888237f2<?php
$x = (-2) ** 0;
/** @psalm-trace $x */;
/** @var int<0, 0> $c */
$y = (-2) ** $c;
/** @psalm-trace $y */;
|
kkmuffme
added a commit
to kkmuffme/psalm
that referenced
this issue
May 7, 2024
Fix vimeo#10947 Fix vimeo#10965 and similar issues including their incorrect tests
kkmuffme
added a commit
to kkmuffme/psalm
that referenced
this issue
May 7, 2024
Fix vimeo#10947 Fix vimeo#10965 and similar issues including their incorrect tests
kkmuffme
added a commit
to kkmuffme/psalm
that referenced
this issue
May 7, 2024
Fix vimeo#10947 Fix vimeo#10965 and similar issues including their incorrect tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://psalm.dev/r/05888237f2
Should be identical, but it's not.
There's a test for it (IntRangeTest pow) but it's wrong there too, as it asserts -1 incorrectly.
The text was updated successfully, but these errors were encountered: