Skip to content

Fix PHP 8.6 deprecation warnings for usage of spl_object_hash - #932

Open
mbiebl wants to merge 1 commit into
TruCopilot:masterfrom
messageconcept:php86
Open

mbiebl wants to merge 1 commit into
TruCopilot:masterfrom
messageconcept:php86

Conversation

@mbiebl

@mbiebl mbiebl commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

The deprecation warning is

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

See https://www.php.net/releases/8.6/en.php#deprecations-and-bc-breaks

Closes #931

Proposed changes

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

Types of changes

What types of changes does your code introduce to Phpfastcache?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves an existing code/behavior)
  • Deprecated third party dependency update
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation/Typo/Resource update that does not involve any code modification

Agreement

I have read the CONTRIBUTING and CODING GUIDELINE docs

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

The deprecation warning is

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

See https://www.php.net/releases/8.6/en.php#deprecations-and-bc-breaks

Closes TruCopilot#931

This branch was successfully deployed

No deployments
github-ci — 1164100b Deployed Nov 29, 2026 by mbiebl via PHP 8.0 quality/tests on ubuntu-22.04 #63
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.

PHP 8.6 compatibility / uses deprecated spl_object_hash()

1 participant