File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 66
77use function sprintf ;
88
9- use const PHP_EOL ;
10-
119final class CliHighlighter implements Highlighter
1210{
1311 public const HIGHLIGHT_FUNCTIONS = 'functions ' ;
@@ -59,7 +57,7 @@ public function highlightError(string $value): string
5957 {
6058 return sprintf (
6159 '%s%s%s%s ' ,
62- PHP_EOL ,
60+ "\n" ,
6361 $ this ->escapeSequences [self ::HIGHLIGHT_ERROR ],
6462 $ value ,
6563 "\x1b[0m " ,
Original file line number Diff line number Diff line change 1010
1111use const ENT_COMPAT ;
1212use const ENT_IGNORE ;
13- use const PHP_EOL ;
1413
1514final class HtmlHighlighter implements Highlighter
1615{
@@ -70,7 +69,7 @@ public function highlightError(string $value): string
7069 {
7170 return sprintf (
7271 '%s<span %s>%s</span> ' ,
73- PHP_EOL ,
72+ "\n" ,
7473 $ this ->htmlAttributes [self ::HIGHLIGHT_ERROR ],
7574 $ value ,
7675 );
You can’t perform that action at this time.
0 commit comments