add php 8.5 support

This commit is contained in:
Beu
2026-01-19 21:22:47 +01:00
parent 53c5e54a3b
commit 928c72c501
6 changed files with 18 additions and 17 deletions

View File

@@ -99,7 +99,11 @@ class Request extends EventDispatcher implements RequestInterface
*/
public function __destruct() {
if (isset($this->ch)) {
curl_close($this->ch);
if (PHP_VERSION_ID >= 80000) {
unset($this->ch);
} else {
curl_close($this->ch);
}
}
}