From 5651621846c9e8c940d4bbb68a46defac4787c44 Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Sun, 14 Aug 2016 12:21:04 +0530 Subject: [PATCH] Return empty array if there are no query params --- src/Pass/BasePass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pass/BasePass.php b/src/Pass/BasePass.php index 916c435d..77417298 100644 --- a/src/Pass/BasePass.php +++ b/src/Pass/BasePass.php @@ -249,7 +249,7 @@ protected function getQueryArray(DOMQuery $el) $query = ParseUrl::parse_url($href, PHP_URL_QUERY); if ($query === null) { - return false; + return []; } $arr = [];