Skip to content

Conversation

@lacatoire
Copy link

@lacatoire lacatoire commented Nov 25, 2025

PHP 8.5 deprecates SplObjectStorage::attach().

Actual runtime message:
"Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead"

PhD still calls these methods internally, producing E_DEPRECATED during builds.
This patch switches to offsetSet() on PHP >= 8.5 while keeping behavior unchanged on older versions.

@lacatoire lacatoire changed the title Replace deprecated SplObjectStorage::attach()/detach() usage for PHP 8.5 Replace deprecated SplObjectStorage::attach() usage for PHP 8.5 Nov 25, 2025
@lacatoire lacatoire requested a review from haszi November 30, 2025 15:36
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