@@ -471,7 +471,7 @@ public function findOne($filter = [], array $options = [])
471
471
/**
472
472
* Finds a single document and deletes it, returning the original.
473
473
*
474
- * The document to return may be null.
474
+ * The document to return may be null if no document matched the filter .
475
475
*
476
476
* Note: BSON deserialization of the returned document does not yet support
477
477
* a custom type map (depends on: https://jira.mongodb.org/browse/PHPC-314).
@@ -499,9 +499,10 @@ public function findOneAndDelete($filter, array $options = [])
499
499
* Finds a single document and replaces it, returning either the original or
500
500
* the replaced document.
501
501
*
502
- * The document to return may be null. By default, the original document is
503
- * returned. Specify FindOneAndReplace::RETURN_DOCUMENT_AFTER for the
504
- * "returnDocument" option to return the updated document.
502
+ * The document to return may be null if no document matched the filter. By
503
+ * default, the original document is returned. Specify
504
+ * FindOneAndReplace::RETURN_DOCUMENT_AFTER for the "returnDocument" option
505
+ * to return the updated document.
505
506
*
506
507
* Note: BSON deserialization of the returned document does not yet support
507
508
* a custom type map (depends on: https://jira.mongodb.org/browse/PHPC-314).
@@ -530,9 +531,10 @@ public function findOneAndReplace($filter, $replacement, array $options = [])
530
531
* Finds a single document and updates it, returning either the original or
531
532
* the updated document.
532
533
*
533
- * The document to return may be null. By default, the original document is
534
- * returned. Specify FindOneAndUpdate::RETURN_DOCUMENT_AFTER for the
535
- * "returnDocument" option to return the updated document.
534
+ * The document to return may be null if no document matched the filter. By
535
+ * default, the original document is returned. Specify
536
+ * FindOneAndUpdate::RETURN_DOCUMENT_AFTER for the "returnDocument" option
537
+ * to return the updated document.
536
538
*
537
539
* Note: BSON deserialization of the returned document does not yet support
538
540
* a custom type map (depends on: https://jira.mongodb.org/browse/PHPC-314).
0 commit comments