Browse Source

Fix empty error bug.

Romain Geissler 13 năm trước cách đây
mục cha
commit
ffbedba2da
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Validator/InlineValidator.php

+ 1 - 1
Validator/InlineValidator.php

@@ -56,6 +56,6 @@ class InlineValidator extends ConstraintValidator
 
         call_user_func($function, $errorElement, $value);
 
-        return count($this->context->getViolations()) == 0;
+        return true;
     }
 }