Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #166 from samsonasik/count-op
Browse files Browse the repository at this point in the history
count() optimization
  • Loading branch information
weierophinney committed May 14, 2018
2 parents 49e04b1 + 5479102 commit 770c151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ protected function populate()
*/
public function hasUnknown()
{
return count($this->getUnknown()) > 0;
return $this->getUnknown() ? true : false;
}

/**
Expand Down

0 comments on commit 770c151

Please sign in to comment.