From 30bb6e82ebc463a25377294c5bddaadb6ecc5b15 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 30 Aug 2023 15:19:30 +0200 Subject: [PATCH 1/2] Update to wp-cli-tests v4 (which requires WPCS v3) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 379b182c..f425eec6 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "wp-cli/wp-cli": "^2.5" }, "require-dev": { - "wp-cli/wp-cli-tests": "^3.1" + "wp-cli/wp-cli-tests": "^4" }, "config": { "process-timeout": 7200, From 68fa31a3dd416a398adc23a571116ca49af817a7 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 30 Aug 2023 15:25:02 +0200 Subject: [PATCH 2/2] Fix all autofixable CS issues --- shell-command.php | 2 +- src/WP_CLI/Shell/REPL.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/shell-command.php b/shell-command.php index a8c52fb6..e3098d49 100644 --- a/shell-command.php +++ b/shell-command.php @@ -4,7 +4,7 @@ return; } -$wpcli_shell_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php'; +$wpcli_shell_autoloader = __DIR__ . '/vendor/autoload.php'; if ( file_exists( $wpcli_shell_autoloader ) ) { require_once $wpcli_shell_autoloader; } diff --git a/src/WP_CLI/Shell/REPL.php b/src/WP_CLI/Shell/REPL.php index f08711d7..f0719ca5 100644 --- a/src/WP_CLI/Shell/REPL.php +++ b/src/WP_CLI/Shell/REPL.php @@ -149,4 +149,3 @@ private static function starts_with( $tokens, $line ) { return preg_match( "/^($tokens)[\(\s]+/", $line ); } } -