Skip to content

Fix PHP 8.5 deprecation: SplObjectStorage::attach()#45

Open
dereuromark wants to merge 1 commit into
icings:5.xfrom
dereuromark:php85-deprecation-fix
Open

Fix PHP 8.5 deprecation: SplObjectStorage::attach()#45
dereuromark wants to merge 1 commit into
icings:5.xfrom
dereuromark:php85-deprecation-fix

Conversation

@dereuromark

@dereuromark dereuromark commented Dec 20, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Replace deprecated SplObjectStorage::attach() with array syntax which uses offsetSet() internally

The attach() method is deprecated in PHP 8.5:

deprecated: 8192 :: Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead

All tests continue to pass.

Resolves #44

Replace deprecated SplObjectStorage::attach() with array syntax
which uses offsetSet() internally. The attach() method is deprecated
in PHP 8.5.
@dereuromark dereuromark mentioned this pull request Dec 20, 2025
@dereuromark

Copy link
Copy Markdown
Contributor Author

ping @ndm2 !

@dereuromark

Copy link
Copy Markdown
Contributor Author

ping2 @ndm2

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.

8.5 deprecations

1 participant