Closed warna720 closed 2 years ago
To reproduce bug:
use Google\GTrends; $options = [ 'hl' => 'sv', 'tz' => -60, 'geo' => '']; $gt = new GTrends($options); $r = $gt->explore(['foo', 'bar'], time: 'today 5-y');
Apparently, Google doesn't adhere to standards since geo:[] isn't appreciated and only accepts geo:{}. This PR replaces, after json encoding, geo:[] with geo:{}.
geo:[]
geo:{}
Open for feedback.
Would be nice to get approved and a new release when/if everything ok!
To reproduce bug:
Apparently, Google doesn't adhere to standards since
geo:[]
isn't appreciated and only acceptsgeo:{}
. This PR replaces, after json encoding, geo:[] with geo:{}.Open for feedback.