From 22fb910f6f5c43757535dcfa6c4dcafbda552539 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 11 Mar 2026 14:18:45 +0100 Subject: [PATCH 1/2] Ignore warnings for overriding global arguments --- composer.json | 2 +- src/Command.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7c2eee3a..2ccef999 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "authors": [], "require": { "php": ">=7.2.24", - "wp-cli/wp-cli": "^2.12" + "wp-cli/wp-cli": "^2.13" }, "require-dev": { "wp-cli/wp-cli-tests": "^5" diff --git a/src/Command.php b/src/Command.php index b9f19e61..2a533405 100644 --- a/src/Command.php +++ b/src/Command.php @@ -127,6 +127,7 @@ class Command { * | total (7) | 1.0335s | 77.42% | * +--------------------------+---------+-------------+ * + * @skipglobalargcheck * @when before_wp_load */ public function stage( $args, $assoc_args ) { @@ -254,6 +255,7 @@ public function stage( $args, $assoc_args ) { * | total (7) | 8 | 0 | * +--------------------------------+------------+--------------+ * + * @skipglobalargcheck * @when before_wp_load */ public function hook( $args, $assoc_args ) { From 79761c7c5edb25b65ca98ef053aaac2c540635ba Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 11 Mar 2026 14:23:16 +0100 Subject: [PATCH 2/2] Update src/Command.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command.php b/src/Command.php index 2a533405..8727938e 100644 --- a/src/Command.php +++ b/src/Command.php @@ -255,7 +255,7 @@ public function stage( $args, $assoc_args ) { * | total (7) | 8 | 0 | * +--------------------------------+------------+--------------+ * - * @skipglobalargcheck + * @skipglobalargcheck * @when before_wp_load */ public function hook( $args, $assoc_args ) {