summaryrefslogtreecommitdiffstats
path: root/phpunit11-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'phpunit11-rpm.patch')
-rw-r--r--phpunit11-rpm.patch6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpunit11-rpm.patch b/phpunit11-rpm.patch
index b8e069b..ec83474 100644
--- a/phpunit11-rpm.patch
+++ b/phpunit11-rpm.patch
@@ -69,11 +69,13 @@ diff -up ./src/TextUI/Command/Commands/VersionCheckCommand.php.rpm ./src/TextUI/
}
if ($notLatest) {
-@@ -54,6 +55,7 @@ final readonly class VersionCheckCommand
+@@ -54,6 +55,9 @@ final readonly class VersionCheckCommand
'The latest version is PHPUnit %s.' . PHP_EOL,
$latestVersion,
);
-+ $buffer .= sprintf('Try to install and use the phpunit%s command.' . PHP_EOL, explode('.', $latestVersion)[0]);
++ if ($major !== ($new = (int)explode('.', $latestVersion)[0])) {
++ $buffer .= sprintf('Try to install and use the phpunit%d command.' . PHP_EOL, $new);
++ }
}
return Result::from($buffer, Result::FAILURE);