diff --git a/php/class-wp-cli.php b/php/class-wp-cli.php index 43a05b330..ae9140c8b 100644 --- a/php/class-wp-cli.php +++ b/php/class-wp-cli.php @@ -916,7 +916,7 @@ public static function error( $message, $exit = true ) { if ( $return_code ) { if ( self::$capture_exit ) { - throw new ExitException( null, $return_code ); + throw new ExitException( '', $return_code ); } exit( $return_code ); } @@ -935,7 +935,7 @@ public static function error( $message, $exit = true ) { */ public static function halt( $return_code ) { if ( self::$capture_exit ) { - throw new ExitException( null, $return_code ); + throw new ExitException( '', $return_code ); } exit( $return_code ); }