Skip to content

Commit 64d827d

Browse files
committed
Update CVarDumper::dumpAsString() for PHP 8.3
Taken from #4562
1 parent 46405c4 commit 64d827d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/utils/CVarDumper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static function dumpAsString($var,$depth=10,$highlight=false)
6060
if($highlight)
6161
{
6262
$result=highlight_string("<?php\n".self::$_output,true);
63-
self::$_output=preg_replace('/&lt;\\?php<br \\/>/','',$result,1);
63+
self::$_output=preg_replace('/&lt;\\?php(<br \\/>|\\n)/','',$result,1);
6464
}
6565
return self::$_output;
6666
}

0 commit comments

Comments
 (0)