Skip to content

Commit ff6e1d4

Browse files
committed
Merge branch '4.3'
2 parents f608785 + c62a643 commit ff6e1d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Framework/Constraint/Count.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function getCountOf($other)
106106
// moves pointer
107107
if ($key !== null) {
108108
$iterator->rewind();
109-
while ($key !== $iterator->key()) {
109+
while ($iterator->valid() && $key !== $iterator->key()) {
110110
$iterator->next();
111111
}
112112
}

0 commit comments

Comments
 (0)