mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
var_export does not handle circular references
this often happens in SilverStripe, a plain print_r is much safer
This commit is contained in:
parent
3b7802bb51
commit
72b25d1a97
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user