Skip to content

Comments

Prefer offsetSet over deprecated attach#161

Merged
sorinsarca merged 2 commits intoopis:php8.5-supportfrom
eliashaeussler:patch-1
Oct 14, 2025
Merged

Prefer offsetSet over deprecated attach#161
sorinsarca merged 2 commits intoopis:php8.5-supportfrom
eliashaeussler:patch-1

Conversation

@eliashaeussler
Copy link
Contributor

SplObjectStorage::attach() is deprecated since PHP v8.5; SplObjectStorage::offsetSet() should be used instead1.

Footnotes

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

@sorinsarca
Copy link
Member

sorinsarca commented Oct 14, 2025

Hi @eliashaeussler,

I'm using php8.5-support branch to add support for the upcoming version; could you add your contribution there? This way we can have the tests running on php8.5.

Thanks!

@eliashaeussler eliashaeussler changed the base branch from master to php8.5-support October 14, 2025 20:42
`SplObjectStorage::attach()` is deprecated since
PHP v8.5; `SplObjectStorage::offsetSet()` should
be used instead [1].

[1]: php/php-src#19424
@eliashaeussler
Copy link
Contributor Author

Hi @sorinsarca, I've adjusted the base branch and rebased my changes :)

@sorinsarca sorinsarca merged commit 4967564 into opis:php8.5-support Oct 14, 2025
6 checks passed
@eliashaeussler eliashaeussler deleted the patch-1 branch October 14, 2025 21:02
@eliashaeussler
Copy link
Contributor Author

Hi @sorinsarca, do you have plans for a PHP 8.5 compatibility release in the near future? :)

@sorinsarca
Copy link
Member

Yes, next week

sorinsarca added a commit that referenced this pull request Nov 20, 2025
* Added php 8.5 tests

* Updated keywords

* Prefer `offsetSet` over deprecated `attach` (#161)

* Prefer `offsetSet` over deprecated `attach`

`SplObjectStorage::attach()` is deprecated since
PHP v8.5; `SplObjectStorage::offsetSet()` should
be used instead [1].

[1]: php/php-src#19424

* Added test

* Updated README

---------

Co-authored-by: Elias Häußler <elias@haeussler.dev>
@sorinsarca
Copy link
Member

@eliashaeussler v4.4.0 was just released

@eliashaeussler
Copy link
Contributor Author

@eliashaeussler v4.4.0 was just released

Thank you very much! ❤️

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