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

Commit 770c151

Browse files
committed
Merge pull request #166 from samsonasik/count-op
count() optimization
2 parents 49e04b1 + 5479102 commit 770c151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseInputFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ protected function populate()
544544
*/
545545
public function hasUnknown()
546546
{
547-
return count($this->getUnknown()) > 0;
547+
return $this->getUnknown() ? true : false;
548548
}
549549

550550
/**

0 commit comments

Comments
 (0)