File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,17 +198,17 @@ function (\stdClass $document) { return (array) $document; },
198
198
*
199
199
* @see Collection::getBulkOptions() for supported $options
200
200
*
201
- * @param array $bulk Array of operations
201
+ * @param array $ops Array of operations
202
202
* @param array $options Additional options
203
203
* @return WriteResult
204
204
*/
205
- public function bulkWrite (array $ bulk , array $ options = array ())
205
+ public function bulkWrite (array $ ops , array $ options = array ())
206
206
{
207
207
$ options = array_merge ($ this ->getBulkOptions (), $ options );
208
208
209
209
$ bulk = new BulkWrite ($ options ["ordered " ]);
210
210
211
- foreach ($ bulk as $ n => $ op ) {
211
+ foreach ($ ops as $ n => $ op ) {
212
212
foreach ($ op as $ opname => $ args ) {
213
213
if (!isset ($ args [0 ])) {
214
214
throw new InvalidArgumentException (sprintf ("Missing argument#1 for '%s' (operation#%d) " , $ opname , $ n ));
You can’t perform that action at this time.
0 commit comments