Skip to content

Commit d474c71

Browse files
committed
Fix return of MaxMindBinary provider
1 parent 82f7bbf commit d474c71

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/Geocoder/Provider/MaxMindBinary.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,16 @@ public function geocode($address)
8080
throw new NoResult(sprintf('No results found for IP address %s', $address));
8181
}
8282

83-
return [ array_merge($this->getDefaults(), [
84-
'countryCode' => $geoIpRecord->country_code,
85-
'country' => $geoIpRecord->country_name,
86-
'region' => $geoIpRecord->region,
87-
'locality' => $geoIpRecord->city,
88-
'latitude' => $geoIpRecord->latitude,
89-
'longitude' => $geoIpRecord->longitude,
90-
])];
83+
return $this->returnResults([
84+
array_merge($this->getDefaults(), [
85+
'countryCode' => $geoIpRecord->country_code,
86+
'country' => $geoIpRecord->country_name,
87+
'region' => $geoIpRecord->region,
88+
'locality' => $geoIpRecord->city,
89+
'latitude' => $geoIpRecord->latitude,
90+
'longitude' => $geoIpRecord->longitude,
91+
])
92+
]);
9193
}
9294

9395
/**

0 commit comments

Comments
 (0)