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 199654a commit 6a889d8Copy full SHA for 6a889d8
src/Node/Iterator.php
@@ -9,6 +9,7 @@
9
*/
10
namespace SebastianBergmann\CodeCoverage\Node;
11
12
+use function assert;
13
use function count;
14
use RecursiveIterator;
15
@@ -74,6 +75,8 @@ public function next(): void
74
75
76
public function getChildren(): self
77
{
78
+ assert($this->nodes[$this->position] instanceof Directory);
79
+
80
return new self($this->nodes[$this->position]);
81
}
82
0 commit comments