π Bug Fix
Removed Deprecated curl_close() Call
Problem:
- PHP 8.5 introduced a deprecation warning for
curl_close() - The function has had no effect since PHP 8.0 (curl handles are automatically closed)
- Users upgrading to PHP 8.5 would see deprecation warnings in their logs
Solution:
- Removed the unnecessary
curl_close($ch)call fromClient::request() - Since this project requires PHP >=8.2, the call was both unnecessary and problematic
- No functional changes - curl handles are automatically cleaned up
Impact:
- β No more deprecation warnings in PHP 8.5+
- β Cleaner code without unnecessary function calls
- β No breaking changes for existing code
Files Changed:
src/Client.php
Credits:
Thanks to @justpilot for identifying this issue in #22 and proposing the initial fix!
Closes #22