diff --git a/src/Rule/Required.php b/src/Rule/Required.php index 6bfbb32..4babb2b 100644 --- a/src/Rule/Required.php +++ b/src/Rule/Required.php @@ -50,7 +50,7 @@ public function validate($value, $field = null, $allFields = null) return false; } - return ($value === 0 or $value === false or ! empty($value)); + return ! ($value === false or $value === null or $value === '' or $value === array()); } }