We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6603358 commit 0e6c98aCopy full SHA for 0e6c98a
1 file changed
StatefulGeocoder.php
@@ -62,11 +62,11 @@ public function geocode(string $value): Collection
62
->withLimit($this->limit);
63
64
if (!empty($this->locale)) {
65
- $query->withLocale($this->locale);
+ $query = $query->withLocale($this->locale);
66
}
67
68
if (!empty($this->bounds)) {
69
- $query->withBounds($this->bounds);
+ $query = $query->withBounds($this->bounds);
70
71
72
return $this->provider->geocodeQuery($query);
@@ -112,7 +112,7 @@ public function reverseQuery(ReverseQuery $query): Collection
112
{
113
$locale = $query->getLocale();
114
if (empty($locale) && null !== $this->locale) {
115
116
117
118
return $this->provider->reverseQuery($query);
0 commit comments