Skip to content

PHP 8.5: SplObjectStorage::attach() is deprecated #144

@Soean

Description

@Soean

Describe the bug

When I run wpstarter with PHP 8.5, I see a deprecation:

Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead, in wecodemore/wpstarter/src/Step/Steps.php line 109.

https://github.com/wecodemore/wpstarter/blob/version-3/src/Step/Steps.php#L109

SplObjectStorage::offsetSet() is an alias of SplObjectStorage::attach().

RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_splobjectstoragecontains_splobjectstorageattach_and_splobjectstoragedetach

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