From 28c4a5366b4c54489d518f81db16a9a3190963f0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 21 Mar 2024 10:33:36 +0100 Subject: update to 11.0.7 --- phpunit11-rpm.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'phpunit11-rpm.patch') 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); -- cgit