Skip to content

Commit

Permalink
Fixed #92: boolean parameters validation
Browse files Browse the repository at this point in the history
  • Loading branch information
baibaratsky committed May 15, 2016
1 parent 6925d9b commit 5145bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Request/RequestValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function validate(array $rules)
protected function validateRequired($paramName)
{
$paramValue = call_user_func(array($this->request, 'get' . ucfirst($paramName)));
if (empty($paramValue) && !is_numeric($paramValue)) {
if (empty($paramValue) && !is_numeric($paramValue) && !is_bool($paramValue)) {
$this->addError(self::TYPE_REQUIRED, $paramName);

return false;
Expand Down

0 comments on commit 5145bf3

Please sign in to comment.