Skip to content

Fix PHP 8.5 deprecation: replace deprecated SplObjectStorage methods#1311

Open
jbrejcha wants to merge 1 commit intohtmlburger:developmentfrom
jbrejcha:fix/php85-splobjectstorage-deprecation
Open

Fix PHP 8.5 deprecation: replace deprecated SplObjectStorage methods#1311
jbrejcha wants to merge 1 commit intohtmlburger:developmentfrom
jbrejcha:fix/php85-splobjectstorage-deprecation

Conversation

@jbrejcha
Copy link
Copy Markdown

PHP 8.5 deprecated SplObjectStorage::attach() and SplObjectStorage::detach(). This replaces them with their non-deprecated equivalents offsetSet() and offsetUnset() in Pimple/Container.php.

Fixes #1308

Replace deprecated SplObjectStorage::attach(), detach() with their
non-deprecated equivalents offsetSet() and offsetUnset() in Pimple/Container.

Fixes htmlburger#1308
@jbrejcha jbrejcha changed the base branch from master to development April 11, 2026 17:58
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.

PHP Deprecated: Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet()

1 participant