Skip to content

Conversation

@eliashaeussler
Copy link
Contributor

@eliashaeussler eliashaeussler commented Nov 14, 2025

SplObjectStorage::attach() was deprecated with PHP 8.51. Its usage is replaced by SplObjectStorage::offsetSet(), which provides the same functionality.

Footnotes

  1. https://github.com/php/php-src/pull/19424

`SplObjectStorage::attach()` was deprecated with PHP 8.5 [1].
Its usage is replaced by `SplObjectStorage::offsetSet()`,
which provides the same functionality.

[1]: php/php-src#19424
@kelunik kelunik merged commit 296b521 into amphp:2.x Nov 15, 2025
9 checks passed
@kelunik
Copy link
Member

kelunik commented Nov 15, 2025

Thanks!

@jorgsowa
Copy link

jorgsowa commented Dec 1, 2025

Thanks for this fix! Could you please release new version of library?

@kelunik
Copy link
Member

kelunik commented Dec 2, 2025

Sure, thanks for the reminder!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants