Skip to content

Remove redundant curl_close in PlexApi.php - #17

Open
G4Zz0L1 wants to merge 1 commit into
jc21:masterfrom
G4Zz0L1:patch-1
Open

Remove redundant curl_close in PlexApi.php#17
G4Zz0L1 wants to merge 1 commit into
jc21:masterfrom
G4Zz0L1:patch-1

Conversation

@G4Zz0L1

Copy link
Copy Markdown

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

CopilotAI review requested due to automatic review settings December 10, 2025 23:05

CopilotAI left a comment

Copy link
Copy Markdown

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 freeto 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.

2 participants

@G4Zz0L1