From a7460bbce1003c5f44ee833e4e8c8ea5de7c523e Mon Sep 17 00:00:00 2001 From: Maxime Renou Date: Thu, 21 Feb 2019 13:20:41 +0100 Subject: [PATCH] awesome --- ValidatorBundle/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ValidatorBundle/Validator.php b/ValidatorBundle/Validator.php index 3163980..da59fce 100644 --- a/ValidatorBundle/Validator.php +++ b/ValidatorBundle/Validator.php @@ -219,7 +219,6 @@ class Validator $attribute = $args[0]; $storage = $args[1]; - // handle if (!$this->hasFile($attribute)) { $this->error($attribute, 'required'); @@ -235,6 +234,7 @@ class Validator $this->error($attribute, 'file_mime_type'); } } + return false; }