From 95869a98038ee3ff583974bc1a76394768dac4b4 Mon Sep 17 00:00:00 2001 From: ILIA Trifonov Date: Wed, 18 Aug 2021 11:44:18 +0300 Subject: [PATCH] Fix reviews output --- src/Services/Place.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Services/Place.php b/src/Services/Place.php index 4898b55..e52a149 100644 --- a/src/Services/Place.php +++ b/src/Services/Place.php @@ -256,7 +256,7 @@ public function photos() */ public function reviews() { - $retArr = isset($this->attributes['reviews']) ? isset($this->attributes['reviews']) : []; + $retArr = isset($this->attributes['reviews']) ? $this->attributes['reviews'] : []; return new Collection($retArr); } @@ -316,5 +316,4 @@ public function elevation($object = false) $elevationStr = isset($firstResult['elevation']) ? round($firstResult['elevation'], 2) : false; return !empty($object) ? $response : $elevationStr; } - -} \ No newline at end of file +}