#107300Replace deprecated `SplObjectStorage` method calls
Description
PHP8.5.0beta1 deprecated following `SplObjectStorage` methods:
- `SplObjectStorage::contains()` => `SplObjectStorage::offsetExists()`
- `SplObjectStorage::attach()` => `SplObjectStorage::offsetSet()`
- `SplObjectStorage::detach() => `SplObjectStorage::offsetUnset()`
[1] https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_splobjectstoragecontains_splobjectstorageattach_and_splobjectstoragedetach
2 https://github.com/php/php-src/blob/5f477d9457de1d78536961fa5679b638102b6631/UPGRADING#L410-L414