From 661376568490f62bbd749590e6a76dcb0b2cedf8 Mon Sep 17 00:00:00 2001 From: Menno van den Ende <50165380+menno-ll@users.noreply.github.com> Date: Fri, 14 Nov 2025 09:52:18 +0100 Subject: [PATCH] fix error phpstan return type --- wp-cli-stubs.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +}