diff --git a/wp-cli-stubs.php b/wp-cli-stubs.php index d370c54..cac13f2 100644 --- a/wp-cli-stubs.php +++ b/wp-cli-stubs.php @@ -4583,6 +4583,8 @@ public static function warning($message) * @param string|WP_Error|Exception|Throwable $message Message to write to STDERR. * @param boolean|integer $exit True defaults to exit(1). * @return null + * + * @phpstan-return ($exit is true|positive-int ? never : void) */ public static function error($message, $exit = \true) { @@ -6732,4 +6734,4 @@ function get_hook_description($hook) function escape_csv_value($value) { } -} \ No newline at end of file +}