Skip to content

Commit 72f5b6e

Browse files
alcaeusCopilot
andauthored
Use explicit null check
Co-authored-by: Copilot <[email protected]>
1 parent bb34d7f commit 72f5b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Operation/ClientBulkWriteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function execute(Server $server): BulkWriteCommandResult
8888
throw UnsupportedException::writeConcernNotSupportedInTransaction();
8989
}
9090

91-
$options = array_filter($this->options, fn ($value) => isset($value));
91+
$options = array_filter($this->options, fn ($value) => $value !== null);
9292

9393
return $server->executeBulkWriteCommand($this->bulkWriteCommand, $options);
9494
}

0 commit comments

Comments
 (0)