0; } catch (\InvalidArgumentException $e) { // Allow to pass through, method will return false. } return false; } /** * {@inheritdoc} */ public function message(): string { return 'The :attribute must be a positive decimal or fraction.'; } }