Drop `var_dump` as safe dump alternative

var_dump does not support returning string representation.
This commit is contained in:
Jon Surrell 2016-12-10 16:13:36 +01:00
parent d88ea4ecea
commit ae72ce24c4
1 changed files with 0 additions and 1 deletions

View File

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