Problem/Motivation
We are getting PHP 8.5 deprecation warnings for use of SplObjectStorage::contains and SplObjectStorage::attach.
Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead in Drupal\graphql\GraphQL\Buffers\BufferBase->resolveBuffer() (line 130 of modules/contrib/graphql/src/GraphQL/Buffers/BufferBase.php).
Deprecated function: Method SplObjectStorage::contains() is deprecated since 8.5, use method SplObjectStorage::offsetExists() instead in Drupal\graphql\GraphQL\Buffers\BufferBase->resolveItem() (line 105 of modules/contrib/graphql/src/GraphQL/Buffers/BufferBase.php).
Steps to reproduce
Proposed resolution
Replace deprecated uses:
SplObjectStorage::attach()=>SplObjectStorage::offsetSet()SplObjectStorage::contains()=>SplObjectStorage::offsetExists()
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork graphql-3578663
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
kim.pepperCreated MRs for 5.x and 8.x-4.x
Comment #8
klausimerged, thanks!