From 72b25d1a9738d2d32974bf3b647c267fbf36adc4 Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Mon, 24 Sep 2018 12:31:06 +0200 Subject: [PATCH] var_export does not handle circular references this often happens in SilverStripe, a plain print_r is much safer --- src/Dev/CliDebugView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dev/CliDebugView.php b/src/Dev/CliDebugView.php index b2d25fa27..ff7f38623 100644 --- a/src/Dev/CliDebugView.php +++ b/src/Dev/CliDebugView.php @@ -176,7 +176,7 @@ class CliDebugView extends DebugView // Format object if (is_object($val)) { - return var_export($val, true); + return print_r($val, true); } // Format bool