Skip to content

Commit

Permalink
an array should be returned actually
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Apr 3, 2024
1 parent e54475c commit 2e8072e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/steps/given.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ function($world) {
$latestVersion = $world->proc('wp core check-update --field=version');

// Normalize versions (remove new lines).
$currentVersion = trim($currentVersion->stdout);
$latestVersion = trim($latestVersion->stdout);
$currentVersion = trim($currentVersion['stdout']);
$latestVersion = trim($latestVersion['stdout']);

// If there's no update available or the current version is the latest, throw an exception to skip the test.
if (empty($latestVersion) || $currentVersion === $latestVersion) {
Expand Down

0 comments on commit 2e8072e

Please sign in to comment.