Skip to content

Commit

Permalink
Fix default printer
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro committed Nov 18, 2023
1 parent ba0a265 commit 31fe38c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/Printers/DefaultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ private function writeMutationTestSummary(MutationTest $test): void

$diff = '';
foreach ($test->mutation->diff['modified'] as $line) {
$line = htmlentities($line); // TODO: this is not good, but currently required other printer breaks on `$this->foo()` because of the >
$line = htmlentities((string) $line); // TODO: this is not good, but currently required other printer breaks on `$this->foo()` because of the >
$diff .= "<div class='text-green'>+ {$line}</div>";
}
foreach ($test->mutation->diff['original'] as $line) {
$line = htmlentities($line); // TODO: this is not good, but currently required other printer breaks on `$this->foo()` because of the >
$line = htmlentities((string) $line); // TODO: this is not good, but currently required other printer breaks on `$this->foo()` because of the >
$diff .= "<div class='text-red'>- {$line}</div>";
}

Expand Down

0 comments on commit 31fe38c

Please sign in to comment.