Document iterable

parent ef21cc89
...@@ -72,6 +72,9 @@ class StatementIteratorTest extends DbalTestCase ...@@ -72,6 +72,9 @@ class StatementIteratorTest extends DbalTestCase
}); });
} }
/**
* @param Traversable<int, mixed> $iterator
*/
private function assertIterationCallsFetchOncePerStep(Traversable $iterator, int &$calls) : void private function assertIterationCallsFetchOncePerStep(Traversable $iterator, int &$calls) : void
{ {
foreach ($iterator as $i => $_) { foreach ($iterator as $i => $_) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment