Skip to content

Commit 1a4755b

Browse files
authored
Remove cast as type inference works
1 parent e22d9f2 commit 1a4755b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaselineSplitter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function split(string $loaderFilePath): array
6262
foreach ($groupedErrors as $identifier => $errors) {
6363
$fileName = $identifier . '.' . $extension;
6464
$filePath = $folder . '/' . $fileName;
65-
$errorsCount = array_reduce($errors, static fn(int $carry, array $item): int => $carry + (int) $item['count'], 0);
65+
$errorsCount = array_reduce($errors, static fn(int $carry, array $item): int => $carry + $item['count'], 0);
6666

6767
$outputInfo[$filePath] = $errorsCount;
6868
$baselineFiles[] = $fileName;

0 commit comments

Comments
 (0)