We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0de5c commit bea5352Copy full SHA for bea5352
src/Model/ChangeStreamIterator.php
@@ -149,11 +149,14 @@ public function current()
149
* iterator. This could be side-stepped due to the class not being final,
150
* but it's very much an invalid use-case. This method can be dropped in 2.0
151
* once the class is final.
152
+ *
153
+ * @return CursorInterface<int, TValue>&Iterator<int, TValue>
154
*/
- final public function getInnerIterator(): CursorInterface
155
+ final public function getInnerIterator(): Iterator
156
{
157
$cursor = parent::getInnerIterator();
158
assert($cursor instanceof CursorInterface);
159
+ assert($cursor instanceof Iterator);
160
161
return $cursor;
162
}
0 commit comments