Skip to content
Snippets Groups Projects
Commit e2b60916 authored by Jordan Hoff's avatar Jordan Hoff Committed by Nicolas Grekas
Browse files

Dumper shouldn't use html format for phpdbg

parent d975ad63
Branches
Tags
No related merge requests found
......@@ -29,7 +29,7 @@ class VarDumper
{
if (null === self::$handler) {
$cloner = new VarCloner();
$dumper = 'cli' === PHP_SAPI ? new CliDumper() : new HtmlDumper();
$dumper = in_array(PHP_SAPI, array('cli', 'phpdbg')) ? new CliDumper() : new HtmlDumper();
self::$handler = function ($var) use ($cloner, $dumper) {
$dumper->dump($cloner->cloneVar($var));
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment