diff --git a/library/Rules/Multiple.php b/library/Rules/Multiple.php index 3c72834b5..722922ff2 100644 --- a/library/Rules/Multiple.php +++ b/library/Rules/Multiple.php @@ -9,6 +9,10 @@ namespace Respect\Validation\Rules; +use function filter_var; + +use const FILTER_VALIDATE_INT; + /** * @author Danilo Benevides * @author Henrique Moody @@ -31,6 +35,9 @@ public function __construct(int $multipleOf) */ public function validate($input): bool { + if (filter_var($input, FILTER_VALIDATE_INT) === false) { + return false; + } if ($this->multipleOf == 0) { return $input == 0; }