Skip to content

Commit 94f6895

Browse files
authored
fix(SplObjectStorage): SplObjectStorage::detach() is deprecated since 8.5, use method SplObjectStorage::offsetUnset()`` instead (#2634)
## Description Fixes deprecation in PHP 8.5 > `SplObjectStorage::detach()`` is deprecated since `8.5`, use method `SplObjectStorage::offsetUnset()`` instead ## What type of PR is this? (check all applicable) - [x] Bug Fix - [ ] Feature - [ ] Refactor - [ ] Deprecation - [ ] Breaking Change - [ ] Documentation Update - [ ] CI ## Checklist - [ ] I have made corresponding changes to the documentation (`docs/`)
1 parent 7069df2 commit 94f6895

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/OpenApiPhp/ModelRegister.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function detach(ModelAnnotation $model, OA\AbstractAnnotation $annotatio
132132
}
133133
}
134134

135-
$analysis->annotations->detach($model);
135+
$analysis->annotations->offsetUnset($model);
136136
}
137137

138138
private function getModel(OA\AbstractAnnotation $annotation): ?ModelAnnotation

0 commit comments

Comments
 (0)