File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 77 beStrictAboutCoverageMetadata =" true"
88 beStrictAboutOutputDuringTests =" true"
99 displayDetailsOnPhpunitDeprecations =" true"
10+ displayDetailsOnTestsThatTriggerDeprecations =" true"
1011 failOnRisky =" true"
1112 failOnWarning =" true" >
1213 <testsuites >
Original file line number Diff line number Diff line change @@ -20,22 +20,22 @@ public function __construct()
2020
2121 public function handleItems (object $ object , array $ items , SerializationContext $ context ): array
2222 {
23- if ($ this ->deferredData ->contains ($ object )) {
23+ if ($ this ->deferredData ->offsetExists ($ object )) {
2424 $ items = array_merge ($ this ->deferredData ->offsetGet ($ object ), $ items );
25- $ this ->deferredData ->detach ($ object );
25+ $ this ->deferredData ->offsetUnset ($ object );
2626 }
2727
2828 $ parentObjectInlining = $ this ->getParentObjectInlining ($ object , $ context );
2929 if (null === $ parentObjectInlining ) {
3030 return $ items ;
3131 }
3232
33- if ($ this ->deferredData ->contains ($ parentObjectInlining )) {
33+ if ($ this ->deferredData ->offsetExists ($ parentObjectInlining )) {
3434 $ items = array_merge ($ items , $ this ->deferredData ->offsetGet ($ parentObjectInlining ));
3535 }
3636
3737 // We need to defer the links serialization to the $parentObject
38- $ this ->deferredData ->attach ($ parentObjectInlining , $ items );
38+ $ this ->deferredData ->offsetSet ($ parentObjectInlining , $ items );
3939
4040 return [];
4141 }
You can’t perform that action at this time.
0 commit comments