Skip to content

Commit 0b1d587

Browse files
Hugometaylorotwell
authored andcommitted
Fix image dimension ratio check (#17943)
1 parent 2bd35c1 commit 0b1d587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Validation/Concerns/ValidatesAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ protected function failsRatioCheck($parameters, $width, $height)
478478
[1, 1], array_filter(sscanf($parameters['ratio'], '%f/%d'))
479479
);
480480

481-
return $numerator / $denominator !== $width / $height;
481+
return $numerator / $denominator != $width / $height;
482482
}
483483

484484
/**

0 commit comments

Comments
 (0)