Skip to content

Commit 6abfd3a

Browse files
fix: remove calls to deprecated curl_close in Geolocation namespace
1 parent 4afbcde commit 6abfd3a

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

src/Geolocation/IP2C.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public function locateIpAddress(string $ipAddress): string
3232
]);
3333
$response = (string) curl_exec($ch);
3434
$code = (int) curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
35-
curl_close($ch);
3635

3736
if ($code >= 400 || $response === '') {
3837
return '';

src/Geolocation/IP2Country.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public function locateIpAddress(string $ipAddress): string
3232
]);
3333
$response = (string) curl_exec($ch);
3434
$code = (int) curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
35-
curl_close($ch);
3635

3736
if ($code >= 400 || $response === '') {
3837
return '';

0 commit comments

Comments
 (0)