You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spl_object_hash() is deprecated in PHP 8.6 (SchemaLoader.php:442) #175
SchemaLoader::getSchemaId() (src/SchemaLoader.php, line 442) calls spl_object_hash(), which is deprecated as of PHP 8.6:
Function spl_object_hash() is deprecated since 8.6, consider using spl_object_id() instead
Impact
Any validation that hits this code path on PHP 8.6 emits a deprecation notice. Projects that convert deprecations to exceptions (test suites, strict error handlers) fail hard.
I hit this via the official MCP PHP SDK (mcp/sdk), which requires opis/json-schema ^2.4 — our test suite started failing on the PHP 8.6 job with:
Schema validation process failed: Function spl_object_hash() is deprecated since 8.6, consider using spl_object_id() instead
Suggested fix
Use spl_object_id() instead — it exists since PHP 7.2, and the package already requires php: ^7.4 || ^8.0, so no compatibility concern.
Activity
sorinsarca commentedon Nov 11, 2026
Already fixed in #174