Skip to content

Commit 5b086ac

Browse files
committed
[WebProfilerBundle] Remove code for PHP < 8.3
1 parent 994a8bd commit 5b086ac

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/CodeExtensionTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,6 @@ public function testFileExcerptIntegration(string $expected, array $data)
138138
TWIG;
139139
$html = $this->render($template, $data);
140140

141-
// highlight_file function output changed sing PHP 8.3
142-
// see https://github.com/php/php-src/blob/e2667f17bc24e3cd200bb3eda457f566f1f77f8f/UPGRADING#L239-L242
143-
if (\PHP_VERSION_ID < 80300) {
144-
$html = str_replace('&nbsp;', ' ', $html);
145-
}
146-
147141
$html = html_entity_decode($html);
148142

149143
$this->assertEquals($expected, $html);

0 commit comments

Comments
 (0)