Skip to content

Avoid deprecation error in PHP >= 8.5.#115

Open
antoineveldhoven wants to merge 1 commit into
lbuchs:masterfrom
antoineveldhoven:php-8.5-support
Open

Avoid deprecation error in PHP >= 8.5.#115
antoineveldhoven wants to merge 1 commit into
lbuchs:masterfrom
antoineveldhoven:php-8.5-support

Conversation

@antoineveldhoven
Copy link
Copy Markdown

Since PHP 8.0.0, curl_close() has no effect and is deprecated as of PHP 8.5.0. Given that this library requires a minimum PHP version of 8.0.0, this call is no longer necessary.

This PR removes the call to curl_close to comply with PHP 8.5.0.

Copilot AI review requested due to automatic review settings January 15, 2026 10:35
Copy link
Copy Markdown

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 removes the deprecated curl_close() call to ensure compatibility with PHP 8.5.0, where the function is deprecated. Since the library already requires PHP 8.0.0 minimum, where curl_close() has no effect, this call is unnecessary.

Changes:

  • Removed the curl_close($ch) call from the queryFidoMetaDataService method
Comments suppressed due to low confidence (1)

src/WebAuthn.php:531

  • Corrected spelling of 'cetificates' to 'certificates'.
     * @return int number of cetificates

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

ScottHelme pushed a commit to report-uri/passkeys-php that referenced this pull request May 13, 2026
curl_close() has been a no-op since PHP 8.0 (curl handles are now
objects and are cleaned up automatically when out of scope) and is
deprecated as of PHP 8.5. Since the library requires PHP >= 8.0, the
call serves no purpose.

Adopted from upstream PR lbuchs/WebAuthn#115 by @antoineveldhoven.
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.

2 participants