diff --git a/src/Error/Debugger.php b/src/Error/Debugger.php
index 5c3f67cb31f..36ff7d76683 100644
--- a/src/Error/Debugger.php
+++ b/src/Error/Debugger.php
@@ -435,7 +435,7 @@ protected static function _highlight($str) {
$highlight = highlight_string($str, true);
if ($added) {
$highlight = str_replace(
- '<?php
',
+ ['<?php
', '<?php
'],
'',
$highlight
);