Skip to content

Commit 3b6ad58

Browse files
committed
Fix DatabaseCommand::execute() return type hint
1 parent b3286bd commit 3b6ad58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Operation/DatabaseCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace MongoDB\Operation;
44

55
use MongoDB\Driver\Command;
6+
use MongoDB\Driver\Cursor;
67
use MongoDB\Driver\ReadPreference;
78
use MongoDB\Driver\Server;
89
use MongoDB\Exception\InvalidArgumentException;
@@ -62,7 +63,7 @@ public function __construct($databaseName, $command, array $options = [])
6263
*
6364
* @see Executable::execute()
6465
* @param Server $server
65-
* @return integer
66+
* @return Cursor
6667
*/
6768
public function execute(Server $server)
6869
{

0 commit comments

Comments
 (0)