Skip to content

Fix spl_object_hash deprecation on PHP 8.6 - #837

Open
jtojnar wants to merge 1 commit into
smalot:masterfrom
jtojnar:php86-deprecation
Open

Fix spl_object_hash deprecation on PHP 8.6#837
jtojnar wants to merge 1 commit into
smalot:masterfrom
jtojnar:php86-deprecation

Conversation

@jtojnar

@jtojnar jtojnar commented Sep 3, 2026

Copy link
Copy Markdown

Type of pull request

  • Bug fix (involves code and configuration changes)
  • New feature (involves code and configuration changes)
  • Documentation update
  • Something else

About

When testing with PHP 8.6.0beta2, I get the following deprecation warning:

Function spl_object_hash() is deprecated since 8.6, consider using spl_object_id() instead

Let’s switch to the suggested function where supported.

https://www.php.net/manual/en/function.spl-object-hash.php
https://www.php.net/manual/en/function.spl-object-id.php

Checklist for code / configuration changes

See CONTRIBUTING.md for all essential information about contributing.

When testing with PHP 8.6.0beta2, I get the following deprecation warning:

    Function spl_object_hash() is deprecated since 8.6, consider using spl_object_id() instead

Let’s switch to the suggested function where supported.

https://www.php.net/manual/en/function.spl-object-hash.php
https://www.php.net/manual/en/function.spl-object-id.php
@k00ni k00ni added the fix label Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants