From 547910273859f2ddd064949e8ee7f79ea480eb33 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 14 May 2018 02:45:48 +0700 Subject: [PATCH] count() optimization --- src/BaseInputFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BaseInputFilter.php b/src/BaseInputFilter.php index 10aff0d3..63fe7f1a 100644 --- a/src/BaseInputFilter.php +++ b/src/BaseInputFilter.php @@ -539,7 +539,7 @@ protected function populate() */ public function hasUnknown() { - return count($this->getUnknown()) > 0; + return $this->getUnknown() ? true : false; } /**