Skip to content

Commit 5779e17

Browse files
Index groups from 1 to match robo-paracept.
1 parent f74b431 commit 5779e17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TimeSplitterTask.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,12 @@ public function run(): Result
114114
}
115115

116116
$groupIdx = null;
117-
foreach ($groups as $groupIdx => $tests) {
117+
foreach ($groups as $idx => $tests) {
118118
if (\count($tests) === 0) {
119119
break;
120120
}
121121

122+
$groupIdx = $idx + 1;
122123
$fileName = $this->groupOutputLoc . $groupIdx;
123124
$this->printTaskInfo("Writing group {$groupIdx} to: $fileName");
124125
$success = file_put_contents($fileName, implode("\n", $tests));

0 commit comments

Comments
 (0)