From e2980f284ae1917de2092f8145732308c244315e Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Wed, 3 Apr 2024 09:49:38 -0600 Subject: [PATCH] simplify how we're invoking proc --- features/steps/given.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/features/steps/given.php b/features/steps/given.php index 58f60a4..e471c5d 100644 --- a/features/steps/given.php +++ b/features/steps/given.php @@ -158,12 +158,10 @@ function($world) { $steps->Given('/^the current WP version is not the latest$/', function ($world) { // Use wp-cli to get the currently installed WordPress version. - $currentVersion = $world->proc('wp core version', []) - ->run_check(); + $currentVersion = $world->proc('wp core version'); // Use wp-cli to get the latest WordPress version available. - $latestVersion = $world->proc('wp core check-update --field=version', []) - ->run_check(); + $latestVersion = $world->proc('wp core check-update --field=version'); // Normalize versions (remove new lines). $currentVersion = trim($currentVersion);