From 100e1529e04b1c0f54f78c91b3533774328b29ba Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Wed, 2 Oct 2024 08:43:54 +0200 Subject: [PATCH] Add conditional return type for Cursor::getId --- stubs/extensions/mongodb.phpstub | 1 + 1 file changed, 1 insertion(+) diff --git a/stubs/extensions/mongodb.phpstub b/stubs/extensions/mongodb.phpstub index 27e193f9067..e28af51fad0 100644 --- a/stubs/extensions/mongodb.phpstub +++ b/stubs/extensions/mongodb.phpstub @@ -264,6 +264,7 @@ namespace MongoDB\Driver { } + /** @return ($asInt64 is true ? Int64 : CursorId) public function getId(bool $asInt64 = false): Int64|CursorId { }