We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a413888 + 6fc6087 commit 8205581Copy full SHA for 8205581
VarDumper.php
@@ -53,6 +53,12 @@ public static function dump($var)
53
public static function setHandler(callable $callable = null)
54
{
55
$prevHandler = self::$handler;
56
+
57
+ // Prevent replacing the handler with expected format as soon as the env var was set:
58
+ if (isset($_SERVER['VAR_DUMPER_FORMAT'])) {
59
+ return $prevHandler;
60
+ }
61
62
self::$handler = $callable;
63
64
return $prevHandler;
0 commit comments