File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes are documented in this file using the [ Keep a CHANGELOG] ( https://keepachangelog.com/ ) principles.
4
4
5
+ ## [ 5.0.1] - 2025-08-10
6
+
7
+ ### Changed
8
+
9
+ * Do not use ` SplObjectStorage ` methods that will be deprecated in PHP 8.5
10
+
5
11
## [ 5.0.0] - 2023-02-03
6
12
7
13
### Removed
@@ -39,6 +45,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
39
45
40
46
* Tests etc. are now ignored for archive exports
41
47
48
+ [ 5.0.1 ] : https://github.com/sebastianbergmann/recursion-context/compare/5.0.0...5.0.1
42
49
[ 5.0.0 ] : https://github.com/sebastianbergmann/recursion-context/compare/4.0.5...5.0.0
43
50
[ 4.0.5 ] : https://github.com/sebastianbergmann/recursion-context/compare/4.0.4...4.0.5
44
51
[ 4.0.4 ] : https://github.com/sebastianbergmann/recursion-context/compare/4.0.3...4.0.4
Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ private function addArray(array &$array): int
116
116
117
117
private function addObject (object $ object ): string
118
118
{
119
- if (!$ this ->objects ->contains ($ object )) {
120
- $ this ->objects ->attach ($ object );
119
+ if (!$ this ->objects ->offsetExists ($ object )) {
120
+ $ this ->objects ->offsetSet ($ object );
121
121
}
122
122
123
123
return spl_object_hash ($ object );
@@ -132,7 +132,7 @@ private function containsArray(array $array): false|int
132
132
133
133
private function containsObject (object $ value ): false |string
134
134
{
135
- if ($ this ->objects ->contains ($ value )) {
135
+ if ($ this ->objects ->offsetExists ($ value )) {
136
136
return spl_object_hash ($ value );
137
137
}
138
138
You can’t perform that action at this time.
0 commit comments