mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-19 02:05:27 +00:00
Don't clear PHP buffer when an error occurs with debug=true
This commit is contained in:
committed by
Fabien Potencier
parent
2a293b6827
commit
c910e71f5a
@@ -54,7 +54,7 @@ function twig_var_dump(Environment $env, $context, array $vars = [])
|
||||
return;
|
||||
}
|
||||
|
||||
ob_start(function () { return ''; });
|
||||
ob_start();
|
||||
|
||||
if (!$vars) {
|
||||
$vars = [];
|
||||
|
||||
Reference in New Issue
Block a user