Skip to content

Commit 1fa09bd

Browse files
committed
Define return types for key() and current() in CursorInterface
1 parent 4dca2c1 commit 1fa09bd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/MongoDB/CursorInterface.stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@
99

1010
interface CursorInterface extends \Iterator
1111
{
12+
public function current(): array|object|null {}
13+
1214
public function getId(): CursorId|\MongoDB\BSON\Int64;
1315

1416
public function getServer(): Server;
1517

1618
public function isDead(): bool;
1719

20+
public function key(): ?int;
21+
1822
public function setTypeMap(array $typemap): void;
1923

2024
public function toArray(): array;

src/MongoDB/CursorInterface_arginfo.h

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)