File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,15 +182,14 @@ namespace MongoDB\BSON
182182namespace 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
You can’t perform that action at this time.
0 commit comments