Summary
PHP 8.5 deprecates curl_close() since it has been a no-op since PHP 8.0 (CurlHandle objects are freed automatically when they fall out of scope).
In src/Core/Client/Adapter/Curl.php, the getResponse() method calls curl_close() twice (lines 59 and 67), which triggers the following deprecation warning at runtime:
Deprecated function: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0
Fix
Simply remove both curl_close($handle) calls in getResponse().
Environment
- solarium/solarium 6.4.1
- PHP 8.5.3