8000 Dumper shouldn't use html format for phpdbg · symfony/symfony@e2b6091 · GitHub
[go: up one dir, main page]

Skip to content

Commit e2b6091

Browse files
Jordan Hoffnicolas-grekas
Jordan Hoff
authored andcommitted
Dumper shouldn't use html format for phpdbg
1 parent d975ad6 commit e2b6091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/VarDumper/VarDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function dump($var)
2929
{
3030
if (null === self::$handler) {
3131
$cloner = new VarCloner();
32-
$dumper = 'cli' === PHP_SAPI ? new CliDumper() : new HtmlDumper();
32+
$dumper = in_array(PHP_SAPI, array('cli', 'phpdbg')) ? new CliDumper() : new HtmlDumper();
3333
self::$handler = function ($var) use ($cloner, $dumper) {
3434
$dumper->dump($cloner->cloneVar($var));
3535
};

0 commit comments

Comments
 (0)
0