Skip to content

Avoid deprecated SplObjectStorage::attach#224

Merged
kelunik merged 1 commit into
amphp:2.xfrom
eliashaeussler:2.x
Nov 15, 2025
Merged

Avoid deprecated SplObjectStorage::attach#224
kelunik merged 1 commit into
amphp:2.xfrom
eliashaeussler:2.x

Conversation

@eliashaeussler

@eliashaeussler eliashaeussler commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

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

kelunik commented Nov 15, 2025

Copy link
Copy Markdown
Member

Thanks!

@jorgsowa

jorgsowa commented Dec 1, 2025

Copy link
Copy Markdown

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

@kelunik

kelunik commented Dec 2, 2025

Copy link
Copy Markdown
Member

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