@@ -38,7 +38,7 @@ private function __construct(
38
38
) {
39
39
}
40
40
41
- public static function createWithCollection (Collection $ collection , array $ options ): self
41
+ public static function createWithCollection (Collection $ collection , array $ options = [] ): self
42
42
{
43
43
$ options += ['ordered ' => true ];
44
44
@@ -67,7 +67,7 @@ public static function createWithCollection(Collection $collection, array $optio
67
67
);
68
68
}
69
69
70
- public function deleteMany (array |object $ filter , ? array $ options = null ): self
70
+ public function deleteMany (array |object $ filter , array $ options = [] ): self
71
71
{
72
72
$ filter = $ this ->builderEncoder ->encodeIfSupported ($ filter );
73
73
@@ -84,7 +84,7 @@ public function deleteMany(array|object $filter, ?array $options = null): self
84
84
return $ this ;
85
85
}
86
86
87
- public function deleteOne (array |object $ filter , ? array $ options = null ): self
87
+ public function deleteOne (array |object $ filter , array $ options = [] ): self
88
88
{
89
89
$ filter = $ this ->builderEncoder ->encodeIfSupported ($ filter );
90
90
@@ -113,7 +113,7 @@ public function insertOne(array|object $document, mixed &$id = null): self
113
113
return $ this ;
114
114
}
115
115
116
- public function replaceOne (array |object $ filter , array |object $ replacement , ? array $ options = null ): self
116
+ public function replaceOne (array |object $ filter , array |object $ replacement , array $ options = [] ): self
117
117
{
118
118
$ filter = $ this ->builderEncoder ->encodeIfSupported ($ filter );
119
119
@@ -155,7 +155,7 @@ public function replaceOne(array|object $filter, array|object $replacement, ?arr
155
155
return $ this ;
156
156
}
157
157
158
- public function updateMany (array |object $ filter , array |object $ update , ? array $ options = null ): self
158
+ public function updateMany (array |object $ filter , array |object $ update , array $ options = [] ): self
159
159
{
160
160
$ filter = $ this ->builderEncoder ->encodeIfSupported ($ filter );
161
161
$ update = $ this ->builderEncoder ->encodeIfSupported ($ update );
@@ -185,7 +185,7 @@ public function updateMany(array|object $filter, array|object $update, ?array $o
185
185
return $ this ;
186
186
}
187
187
188
- public function updateOne (array |object $ filter , array |object $ update , ? array $ options = null ): self
188
+ public function updateOne (array |object $ filter , array |object $ update , array $ options = [] ): self
189
189
{
190
190
$ filter = $ this ->builderEncoder ->encodeIfSupported ($ filter );
191
191
$ update = $ this ->builderEncoder ->encodeIfSupported ($ update );
0 commit comments