Skip to content

Fix deprecation of SplObjectStorage::attach/detach in PHP 8.5#223

Merged
Namoshek merged 1 commit intophp-mqtt:masterfrom
dora38:php85
Mar 28, 2026
Merged

Fix deprecation of SplObjectStorage::attach/detach in PHP 8.5#223
Namoshek merged 1 commit intophp-mqtt:masterfrom
dora38:php85

Conversation

@dora38
Copy link
Copy Markdown
Contributor

@dora38 dora38 commented Mar 28, 2026

PHP 8.5 deprecates SplObjectStorage::attach and SplObjectStorage::detach.

This PR replaces them with offsetSet and offsetUnset respectively.

References:

@Namoshek Namoshek merged commit 97df2f5 into php-mqtt:master Mar 28, 2026
1 of 41 checks passed
@Namoshek
Copy link
Copy Markdown
Collaborator

Thanks!

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.

2 participants