var_export does not handle circular references

this often happens in SilverStripe, a plain print_r is much safer
This commit is contained in:
Thomas Portelange 2018-09-24 12:31:06 +02:00 committed by GitHub
parent 3b7802bb51
commit 72b25d1a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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