You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a bug specifically with the faking of images because when I write a test for this scenario in the framework with a real image it behaves as expected. I'm not sure what's going on here. Afaik the faked file's dimensions are passed correctly but the validator isn't behaving as expected.
It's a float comparison issue and it only happens with certain values of $n in the example above. For example validation passes with $n=64 but not with $n=72
Description:
Dimensions rule fails to correctly check ratio 1/1 when height equals to width + 1. Following case passes validation while it should not:
Here is the code:
framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php
Lines 556 to 569 in 8f22cab
What it simplifies to:
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: