Skip to content

Commit 88e5c10

Browse files
authored
Dont trim cache-warmer output (#29)
1 parent 8a554b3 commit 88e5c10

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Service/CodeNodeRunner.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,7 @@ private function warmupCache(CodeNode $node, IssueCollection $issues, string $ap
5454
return;
5555
}
5656

57-
$error = '';
58-
foreach (explode(PHP_EOL, $process->getErrorOutput()) as $line) {
59-
$line = trim($line);
60-
if ('' !== $line) {
61-
$error .= $line.PHP_EOL;
62-
}
63-
}
64-
65-
$issues->addIssue(new Issue($node, trim($error), 'Cache Warmup', $node->getEnvironment()->getCurrentFileName(), count(explode(PHP_EOL, $node->getValue())) - 1));
57+
$issues->addIssue(new Issue($node, trim($process->getErrorOutput()), 'Cache Warmup', $node->getEnvironment()->getCurrentFileName(), count(explode(PHP_EOL, $node->getValue())) - 1));
6658
}
6759

6860
private function getFile(CodeNode $node): string

0 commit comments

Comments
 (0)