Don't clear PHP buffer when an error occurs with debug=true

This commit is contained in:
Grégoire Pineau
2019-06-06 16:16:15 +02:00
committed by Fabien Potencier
parent 2a293b6827
commit c910e71f5a
9 changed files with 86 additions and 9 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ function twig_var_dump(Environment $env, $context, array $vars = [])
return;
}
ob_start(function () { return ''; });
ob_start();
if (!$vars) {
$vars = [];