mirror of
https://github.com/yiisoft/yii.git
synced 2026-02-20 01:21:22 +01:00
Update CVarDumper::dumpAsString() for PHP 8.3
Taken from https://github.com/yiisoft/yii/pull/4562
This commit is contained in:
@@ -60,7 +60,7 @@ class CVarDumper
|
||||
if($highlight)
|
||||
{
|
||||
$result=highlight_string("<?php\n".self::$_output,true);
|
||||
self::$_output=preg_replace('/<\\?php<br \\/>/','',$result,1);
|
||||
self::$_output=preg_replace('/<\\?php(<br \\/>|\\n)/','',$result,1);
|
||||
}
|
||||
return self::$_output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user