Skip to content

Commit 278975f

Browse files
committed
Remove curl_close for PHP 8.5
1 parent c1ba724 commit 278975f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ConstantContact/Client.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,14 +470,11 @@ private function exec(\CurlHandle $ch) : bool
470470
$this->accessToken = $data['access_token'] ?? '';
471471
$this->refreshToken = $data['refresh_token'] ?? '';
472472

473-
\curl_close($ch);
474-
475473
return isset($data['access_token'], $data['refresh_token']);
476474
}
477475

478476
$this->statusCode = \curl_errno($ch);
479477
$this->lastError = \curl_error($ch);
480-
\curl_close($ch);
481478

482479
return false;
483480
}

0 commit comments

Comments
 (0)