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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions