Skip to content

Commit 9a10827

Browse files
authored
Merge pull request #5897 from christianwach/warning
2 parents 93f5880 + 711b989 commit 9a10827

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/class-wp-cli.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ public static function error( $message, $exit = true ) {
916916

917917
if ( $return_code ) {
918918
if ( self::$capture_exit ) {
919-
throw new ExitException( null, $return_code );
919+
throw new ExitException( '', $return_code );
920920
}
921921
exit( $return_code );
922922
}
@@ -935,7 +935,7 @@ public static function error( $message, $exit = true ) {
935935
*/
936936
public static function halt( $return_code ) {
937937
if ( self::$capture_exit ) {
938-
throw new ExitException( null, $return_code );
938+
throw new ExitException( '', $return_code );
939939
}
940940
exit( $return_code );
941941
}

0 commit comments

Comments
 (0)