summaryrefslogtreecommitdiffstats
path: root/phpunit11-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-03-21 10:33:36 +0100
committerRemi Collet <remi@php.net>2024-03-21 10:33:36 +0100
commit28c4a5366b4c54489d518f81db16a9a3190963f0 (patch)
tree1b7c650ba18f6428a5f412e2790361e1cb02ce6f /phpunit11-rpm.patch
parent3d30324869d8be5073920bbe8e8b5126946856d1 (diff)
update to 11.0.7
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);