Skip to content

Commit 053fa97

Browse files
committed
UpdateResult::getUpsertedId() may return any value
1 parent a6b2d85 commit 053fa97

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/UpdateResult.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace MongoDB;
44

5-
use BSON\ObjectId;
65
use MongoDB\Driver\WriteResult;
76

87
/**
@@ -67,7 +66,7 @@ public function getUpsertedCount()
6766
*
6867
* This value is undefined if an upsert did not take place.
6968
*
70-
* @return ObjectId|null
69+
* @return mixed|null
7170
*/
7271
public function getUpsertedId()
7372
{

0 commit comments

Comments
 (0)