Remove deprecated curl_close() calls for PHP 8.5+ compatibility
curl_close() is a no-op since PHP 8.0 (curl handles auto-cleanup as objects), deprecated in 8.0, and generates warnings in 8.5. Removed from auto-updater and FCM classes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -177,7 +177,6 @@ class TWP_Auto_Updater {
|
||||
|
||||
$response = curl_exec($ch);
|
||||
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
curl_close($ch);
|
||||
|
||||
if (!$response || $http_code !== 200) {
|
||||
error_log("TWP Auto-Updater: Gitea API returned status $http_code");
|
||||
|
||||
Reference in New Issue
Block a user