Skip to content

Commit 989cdc6

Browse files
authored
Solved value swapping
Solved value swapping in the IP-API driver involving "region" and "regionCode" fields.
1 parent 3a04fef commit 989cdc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Drivers/IPApiDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public function get($ip)
2525
'countryCode' => array_get($data, 'countryCode'),
2626
'latitude' => array_get($data, 'lat'),
2727
'longitude' => array_get($data, 'lon'),
28-
'region' => array_get($data, 'region'),
29-
'regionCode' => array_get($data, 'regionName'),
28+
'region' => array_get($data, 'regionName'),
29+
'regionCode' => array_get($data, 'region'),
3030
'timezone' => array_get($data, 'timezone'),
3131
'postalCode' => array_get($data, 'zip'),
3232
];

0 commit comments

Comments
 (0)