From 06f5f18c4194235d0852536bdb24a1412f75a03f Mon Sep 17 00:00:00 2001 From: Jan Drda Date: Fri, 9 Dec 2016 11:05:59 +0100 Subject: [PATCH] Datatypes corrected --- .../LaravelGoogleCustomSearchEngine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/JanDrda/LaravelGoogleCustomSearchEngine/LaravelGoogleCustomSearchEngine.php b/src/JanDrda/LaravelGoogleCustomSearchEngine/LaravelGoogleCustomSearchEngine.php index c465f0d..97685d6 100644 --- a/src/JanDrda/LaravelGoogleCustomSearchEngine/LaravelGoogleCustomSearchEngine.php +++ b/src/JanDrda/LaravelGoogleCustomSearchEngine/LaravelGoogleCustomSearchEngine.php @@ -24,7 +24,7 @@ class LaravelGoogleCustomSearchEngine /** * Original response converted to array * - * @var array + * @var \stdClass */ protected $originalResponse; @@ -88,7 +88,7 @@ public function getResults($phrase, $parameters = array()) * Check required parameters */ if ($phrase == '') { - return $searchResults; + return array(); } if ($this->engineId == '') {