diff --git a/src/Service/CodeNodeRunner.php b/src/Service/CodeNodeRunner.php index af495e9..8292488 100644 --- a/src/Service/CodeNodeRunner.php +++ b/src/Service/CodeNodeRunner.php @@ -54,15 +54,7 @@ private function warmupCache(CodeNode $node, IssueCollection $issues, string $ap return; } - $error = ''; - foreach (explode(PHP_EOL, $process->getErrorOutput()) as $line) { - $line = trim($line); - if ('' !== $line) { - $error .= $line.PHP_EOL; - } - } - - $issues->addIssue(new Issue($node, trim($error), 'Cache Warmup', $node->getEnvironment()->getCurrentFileName(), count(explode(PHP_EOL, $node->getValue())) - 1)); + $issues->addIssue(new Issue($node, trim($process->getErrorOutput()), 'Cache Warmup', $node->getEnvironment()->getCurrentFileName(), count(explode(PHP_EOL, $node->getValue())) - 1)); } private function getFile(CodeNode $node): string