Repository navigation
PHP 8.6 compatibility - #174
Merged
Merged
Conversation
sorinsarca
requested changes
Nov 6, 2026
spl_object_hash() is deprecated in PHP 8.6. Build the generated schema id from spl_object_id() in the same format spl_object_hash() returns since PHP 8.1, so ids stay the same there. Add PHP 8.6 to the CI matrix.
dhrupo
force-pushed
the
php86-spl-object-id
branch
from
November 6, 2026 06:52
81045f7 to
77a249f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ensures PHP 8.6 compatibility by replacing the
spl_object_hash()call inSchemaLoader::createSchemaId(). PHP 8.6 deprecatesspl_object_hash(), so every object schema loaded without an$idtriggers a deprecation (2216 in the test suite on 8.6.0-dev).The id is now built from
spl_object_id()in the same 32-character form, which is exactly whatspl_object_hash()returns since PHP 8.1, so generated ids do not change there.Adds 8.6 to the CI matrix. The test suite passes on 7.4, 8.5 and 8.6.0-dev with no deprecations (2216 on 8.6 before).
AI assistance: I used Claude Code to find this and write the change; I reviewed and ran everything myself.