Skip to content

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

Description

@mattiacoll

In PHP 8.5

  • SplObjectStorage::attach()
  • SplObjectStorage::contains()
  • SplObjectStorage::detach()
    have been deprecated and should be replaced by:
  • SplObjectStorage::offsetSet()
  • SplObjectStorage::offsetExists()
  • SplObjectStorage::offsetUnset()
    respectively. (PHP reference)

These classes seem to only be present in Container and get called just a couple of times so updating the methods should be straightforward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions