瀏覽代碼

Fix empty error bug.

Romain Geissler 13 年之前
父節點
當前提交
ffbedba2da
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
     }
 }