-
-
Notifications
You must be signed in to change notification settings - Fork 75
Backport static analysis fixes to 1.6 #337
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
Conversation
Pull Request Test Coverage Report for Build 1887119618
💛 - Coveralls |
e51707a
to
87b366f
Compare
@azjezz any clue on the failing unit test?
Should be "-3.380515006246586" on all versions though : https://3v4l.org/Bq0B4 |
I'm guessing this fails for PHP 7.4, but not +8.0? 🤔 no idea honestly. If it's just this test case, we can suppress it for 1.6 branch. |
Tested it on all php versions on Mac and got the same error. Will suppress it on this branch |
0df8d3f
to
f6d7bef
Compare
f6d7bef
to
8a9f005
Compare
@veewee can you release a new 1.6? |
Done! Thanks. |
@veewee the MacOS issue exists in 2.0.x branch as well, showed up now after i ran CI :/ |
Probably related with newer Mac versions and underlying libraries then... We could round the result to 5 digits in the test cases or report it to internals? The rounding issue doesn't seem that dramatic to me though. But then again: I haven't used cos,sin,tan in ages |
@veewee There's a dedicated PHPUnit method for this use case: Edit: looking at the source code, I think |
we shouldn't use this, the float value is correct, something weird is going on in MacOs that results in incorrect result. |
Backported these fixes to resolve Type\shape() issues: