Skip to content

Conversation

@antoineveldhoven
Copy link

  • [ x ] Changelog entry is added or the pull request don't alter library's functionality

http_build_query expects a string, null no longer allowed.
curl_close() since PHP 8.0.0 ineffective, since 8.5.0 deprecated.

Copilot AI review requested due to automatic review settings January 15, 2026 12:44
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 pull request addresses PHP 8.5 compatibility issues by fixing parameter types and avoiding deprecated functions.

Changes:

  • Fixed http_build_query() call to use empty string instead of null for the second parameter
  • Added version check to conditionally skip curl_close() call to avoid deprecation warnings
  • Updated CHANGELOG with entries for both fixes

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/OpenIDConnectClient.php Fixed http_build_query null parameter and added PHP version check for curl_close
CHANGELOG.md Added changelog entries documenting both PHP 8.5 compatibility fixes

💡 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