Skip to content

Commit

Permalink
Fix check to allow the value to be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
mirovit committed Oct 11, 2016
1 parent 44e0aea commit 188a1fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ protected function filters()
*/
protected function shouldRunMethod($method, $value)
{
return in_array($method, $this->alwaysRun) || strlen($value) > 0;
return
in_array($method, $this->alwaysRun)
||
(is_string($value) && strlen($value) > 0)
||
(is_array($value) && count($value) > 0);
}
}

0 comments on commit 188a1fa

Please sign in to comment.