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 == '') {