Skip to content

Support PHP 8.6: spl_object_id(), CI on 8.6, test deprecations - #86

Open
Spriz wants to merge 2 commits into
overblog:masterfrom
Spriz:php86-spl-object-id
Open

Spriz wants to merge 2 commits into
overblog:masterfrom
Spriz:php86-spl-object-id

Conversation

@Spriz

@Spriz Spriz commented Oct 4, 2026 •

Copy link
Copy Markdown

Disclosure: this change and description were written by an AI coding agent (Claude Code) and have not yet been reviewed by me.

PHP 8.6 emits "Function spl_object_hash() is deprecated since 8.6, consider using spl_object_id() instead" from CacheMap and WebonyxGraphQLSyncPromiseAdapter, both hit by the existing tests. The adapter's cancellers are now keyed by int; CacheMap formats the id as a 32-char hex string so object keys still cannot collide with integer keys.

CI now also runs on PHP 8.6 (highest dependencies only, like 8.5). The second commit fixes the deprecations the suite itself raised: single-argument ReflectionProperty::setValue() in tests/TestCase.php, and data provider keys (metrics/response) that did not match testExecute()'s parameter names. The suite is now deprecation-free on 8.5; on 8.6 the only one left is guzzlehttp/promises' Is class, fixed upstream in guzzle/promises#245.

🤖 Generated with Claude Code

@Spriz Spriz changed the title Use spl_object_id() instead of spl_object_hash() Support PHP 8.6: spl_object_id(), CI on 8.6, test deprecations Oct 4, 2026
@Spriz
Spriz force-pushed the php86-spl-object-id branch from 333d5eb to e028bbb Compare October 4, 2026 13:35
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.

1 participant