Skip to content

Commit 66ef3c0

Browse files
authored
Update Geocoder.php
1 parent 8dd0b29 commit 66ef3c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Geocoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected function formatResponse($response): array
140140
'formatted_address' => $result->formatted_address,
141141
'viewport' => $result->geometry->viewport,
142142
'address_components' => $result->address_components,
143-
'partial_match' => $result->partial_match,
143+
'partial_match' => isset($result->partial_match) ? $result->partial_match : false ,
144144
'place_id' => $result->place_id,
145145
];
146146
}, $response->results);

0 commit comments

Comments
 (0)