Skip to content

Conversation

@G4Zz0L1
Copy link

@G4Zz0L1 G4Zz0L1 commented Dec 10, 2025

Removed unnecessary curl_close call before returning response.

PHP 8.5 deprecated curl_close()
See:
https://www.php.net/manual/en/function.curl-close.php
https://www.php.net/manual/en/migration85.deprecated.php

Removed unnecessary curl_close call before returning response.

PHP 8.5 deprecated curl_close()
See:
https://www.php.net/manual/en/function.curl-close.php
https://www.php.net/manual/en/migration85.deprecated.php
Copilot AI review requested due to automatic review settings December 10, 2025 23:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prepares the codebase for PHP 8.5 compatibility by removing an explicit curl_close() call, which has been deprecated in PHP 8.5. The change relies on PHP's automatic resource cleanup when the curl resource goes out of scope, which is the recommended approach going forward.

  • Removes explicit curl_close() call before returning the response in the call method
  • Aligns with PHP 8.5 deprecation of curl_close() function
  • Maintains existing functionality through PHP's automatic resource management

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant