-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Labels
Description
Laravel Version
v12.14.1
PHP Version
8.4
Database Driver & Version
No response
Description
On specific input $validator->fails() throws exception instead of returning bool
Steps To Reproduce
Run this code and you will get an exception instead of var_dump output.
Illuminate\Support\Exceptions\MathException - Scientific notation exponent outside of allowed range.
$validator = \Validator::make([
'amount' => '000542e-110880933569',
], [
'amount' => 'numeric|between:0.9,10',
]);
var_dump($validator->fails()); // throws MathException instead of returning boolean