fix: before each globally

This commit is contained in:
Nuno Maduro
2024-07-03 22:15:11 +01:00
parent 29787d1ff1
commit 1c4bc8b1dc
4 changed files with 14 additions and 8 deletions

View File

@ -197,7 +197,7 @@ final class Coverage
};
$array = [];
foreach (array_filter($file->lineCoverageData(), 'is_array') as $line => $tests) {
foreach (array_filter($file->lineCoverageData(), is_array(...)) as $line => $tests) {
$array = $eachLine($array, $tests, $line);
}