Skip to content

Commit

Permalink
Fix PHP deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
christianwach committed Feb 6, 2024
1 parent 93f5880 commit 711b989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/class-wp-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand All @@ -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 );
}
Expand Down

0 comments on commit 711b989

Please sign in to comment.