Skip to content

Commit

Permalink
Dumper shouldn't use html format for phpdbg
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hoff authored and nicolas-grekas committed Jan 3, 2018
1 parent d975ad6 commit e2b6091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/VarDumper/VarDumper.php
Expand Up @@ -29,7 +29,7 @@ public static function dump($var)
{
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));
};
Expand Down

0 comments on commit e2b6091

Please sign in to comment.