Skip to content

Commit

Permalink
Define return types for key() and current() in CursorInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Sep 18, 2024
1 parent aaef696 commit c4ee635
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/MongoDB/CursorInterface.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@

interface CursorInterface extends \Iterator
{
public function current(): array|object|null {}

public function getId(): CursorId|\MongoDB\BSON\Int64;

public function getServer(): Server;

public function isDead(): bool;

public function key(): ?int;

public function setTypeMap(array $typemap): void;

public function toArray(): array;
Expand Down
10 changes: 9 additions & 1 deletion src/MongoDB/CursorInterface_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c4ee635

Please sign in to comment.