Skip to content

[13.x] Fix inverted ratio comparison operators in image dimension validation#60290

Merged
taylorotwell merged 2 commits into
laravel:13.xfrom
Button99:13.x
May 27, 2026
Merged

[13.x] Fix inverted ratio comparison operators in image dimension validation#60290
taylorotwell merged 2 commits into
laravel:13.xfrom
Button99:13.x

Conversation

@Button99
Copy link
Copy Markdown
Contributor

The failsMinRatioCheck method used > instead of < causing images that exceeded the minimum ratio to incorrectly fail the validation. Same for the failsMaxRatioCheck

I have updated the comparison operators and corrected the tests assertions that were written to match the inverted behavior.

@taylorotwell taylorotwell merged commit 21264ff into laravel:13.x May 27, 2026
51 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants