File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ public function replace(
361
361
$ member = self ::filterMember ($ member );
362
362
363
363
return match (true ) {
364
- $ member ->equals ( $ this ->members [$ offset ]) => $ this ,
364
+ $ member ->equals ($ this ->members [$ offset ]) => $ this ,
365
365
default => new self (...array_replace ($ this ->members , [$ offset => $ member ])),
366
366
};
367
367
}
Original file line number Diff line number Diff line change @@ -257,10 +257,11 @@ public function equals(mixed $value): bool
257
257
}
258
258
259
259
return match (true ) {
260
- ($ this ->value instanceof Bytes || $ this ->value instanceof Token || $ this ->value instanceof DisplayString) && $ this ->value ->equals ($ value ),
261
- $ this ->value instanceof DateTimeInterface && $ value instanceof DateTimeInterface && $ value == $ this ->value ,
262
- $ value === $ this ->value => true ,
263
- default => false ,
260
+ $ this ->value instanceof Bytes,
261
+ $ this ->value instanceof Token,
262
+ $ this ->value instanceof DisplayString => $ this ->value ->equals ($ value ),
263
+ $ this ->value instanceof DateTimeInterface && $ value instanceof DateTimeInterface => $ value == $ this ->value ,
264
+ default => $ value === $ this ->value ,
264
265
};
265
266
}
266
267
}
You can’t perform that action at this time.
0 commit comments