Drop `var_dump` as safe dump alternative
var_dump does not support returning string representation.
This commit is contained in:
parent
d88ea4ecea
commit
ae72ce24c4
|
@ -1436,7 +1436,6 @@ function wc_get_logger() {
|
|||
function wc_safe_dump( $expression ) {
|
||||
$alternatives = array(
|
||||
array( 'func' => 'print_r', 'args' => array( $expression, true ) ),
|
||||
array( 'func' => 'var_dump', 'args' => array( $expression, true ) ),
|
||||
array( 'func' => 'var_export', 'args' => array( $expression, true ) ),
|
||||
array( 'func' => 'json_encode', 'args' => array( $expression ) ),
|
||||
array( 'func' => 'serialize', 'args' => array( $expression ) ),
|
||||
|
|
Loading…
Reference in New Issue