Skip to content

Commit

Permalink
Update CVarDumper::dumpAsString() for PHP 8.3
Browse files Browse the repository at this point in the history
Taken from #4562
  • Loading branch information
marcovtwout committed Sep 18, 2024
1 parent 46405c4 commit 64d827d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/utils/CVarDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function dumpAsString($var,$depth=10,$highlight=false)
if($highlight)
{
$result=highlight_string("<?php\n".self::$_output,true);
self::$_output=preg_replace('/&lt;\\?php<br \\/>/','',$result,1);
self::$_output=preg_replace('/&lt;\\?php(<br \\/>|\\n)/','',$result,1);
}
return self::$_output;
}
Expand Down

0 comments on commit 64d827d

Please sign in to comment.