Skip to content

Commit e6b3455

Browse files
committed
Fix CursorInterface inheritance chain
1 parent c43215a commit e6b3455

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

stubs/extensions/mongodb.phpstub

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,14 @@ namespace MongoDB\BSON
182182
namespace MongoDB\Driver
183183
{
184184
use Iterator;
185-
use Traversable;
186185

187186
/**
188187
* @template-covariant TKey
189188
* @template-covariant TValue
190189
*
191-
* @template-extends Traversable<TKey, TValue>
190+
* @template-extends Iterator<TKey, TValue>
192191
*/
193-
interface CursorInterface extends Traversable
192+
interface CursorInterface extends Iterator
194193
{
195194
/**
196195
* @return array<TValue>
@@ -201,10 +200,9 @@ namespace MongoDB\Driver
201200
/**
202201
* @template-covariant TValue of array|object
203202
*
204-
* @template-implements Iterator<int, TValue>
205203
* @template-implements CursorInterface<int, TValue>
206204
*/
207-
final class Cursor implements CursorInterface, Iterator
205+
final class Cursor implements CursorInterface
208206
{
209207
/**
210208
* @return TValue

0 commit comments

Comments
 (0)