File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ public function geocode(string $value): Collection
6262 ->withLimit ($ this ->limit );
6363
6464 if (!empty ($ this ->locale )) {
65- $ query ->withLocale ($ this ->locale );
65+ $ query = $ query ->withLocale ($ this ->locale );
6666 }
6767
6868 if (!empty ($ this ->bounds )) {
69- $ query ->withBounds ($ this ->bounds );
69+ $ query = $ query ->withBounds ($ this ->bounds );
7070 }
7171
7272 return $ this ->provider ->geocodeQuery ($ query );
@@ -112,7 +112,7 @@ public function reverseQuery(ReverseQuery $query): Collection
112112 {
113113 $ locale = $ query ->getLocale ();
114114 if (empty ($ locale ) && null !== $ this ->locale ) {
115- $ query ->withLocale ($ this ->locale );
115+ $ query = $ query ->withLocale ($ this ->locale );
116116 }
117117
118118 return $ this ->provider ->reverseQuery ($ query );
You can’t perform that action at this time.
0 commit comments