Skip to content

fix: PHP 8.5 deprecations for SplObjectStorage methods and null array offset#486

Open
m-hume wants to merge 3 commits into
ezyang:masterfrom
m-hume:master
Open

fix: PHP 8.5 deprecations for SplObjectStorage methods and null array offset#486
m-hume wants to merge 3 commits into
ezyang:masterfrom
m-hume:master

Conversation

@m-hume

@m-hume m-hume commented Jul 6, 2026

Copy link
Copy Markdown

Problem

PHP 8.5 deprecates several SplObjectStorage methods and using null as an array offset, producing deprecation warnings in tests and production.

Fixes

  • RemoveSpansWithoutAttributes.php: attach()offsetSet(), detach()offsetUnset(), contains()offsetExists()
  • URISchemeRegistry.php: cast $scheme to string before use as array offset

Test Results

All 226 test cases pass (2863 assertions) with 0 exceptions after these fixes.

@m-hume m-hume changed the title Fix SplObjectStorage::contains() deprecation for PHP 8.5 fix: PHP 8.5 deprecations for SplObjectStorage methods and null array offset Jul 6, 2026
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