From ec0050fdcabb9f13f44a0a7faf1f5ee02a2ccc47 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Wed, 21 Apr 2021 12:39:42 +0200 Subject: [PATCH] Dont trim cache-warmer output --- src/Service/CodeNodeRunner.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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