Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release checker message versions #410

Merged
merged 1 commit into from Mar 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Service/ReleaseChecker.php
Expand Up @@ -18,7 +18,7 @@ class ReleaseChecker
private const CONSOLE_MESSAGE = <<<'TEXT'
<options=bold>There is a new version available for download.</>

Consider upgrading (from <fg=green;options=bold>%s</> to <fg=red;options=bold>%s</>) by following the steps described below.
Consider upgrading (from <fg=red;options=bold>%s</> to <fg=green;options=bold>%s</>) by following the steps described below.
👉 Retrieve the latest version of the tool with <fg=yellow;options=bold>composer global update ajardin/origami</>.
👉 Update your local environment configuration with <fg=yellow;options=bold>origami update</>.

Expand Down Expand Up @@ -113,7 +113,7 @@ private function printMessage(OrigamiStyle $io, string $release, string $current
: $currentStatus
;

$message = sprintf(self::CONSOLE_MESSAGE, $release, $version);
$message = sprintf(self::CONSOLE_MESSAGE, $version, $release);
$io->text($message);
}
}