From 0ef4d1f1d0590e1a68707bd4f3fb52d6a1c36b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 13 Apr 2023 09:34:12 +0200 Subject: [PATCH] Fix: Adjust order of values when assembling error message --- build/templates/binary-phar-autoload.php.in | 4 ++-- phpunit | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/templates/binary-phar-autoload.php.in b/build/templates/binary-phar-autoload.php.in index c95cac27c45..6175182730c 100644 --- a/build/templates/binary-phar-autoload.php.in +++ b/build/templates/binary-phar-autoload.php.in @@ -44,9 +44,9 @@ if ([] !== $unavailableExtensions) { STDERR, sprintf( 'PHPUnit requires the "%s" extensions, but the "%s" %s not available.' . PHP_EOL, - count($unavailableExtensions) === 1 ? 'extension is' : 'extensions are', implode('", "', $requiredExtensions), - implode('", "', $unavailableExtensions) + implode('", "', $unavailableExtensions), + count($unavailableExtensions) === 1 ? 'extension is' : 'extensions are' ) ); diff --git a/phpunit b/phpunit index 92cc3aa44d2..b9f5cf29d4b 100755 --- a/phpunit +++ b/phpunit @@ -52,9 +52,9 @@ if ([] !== $unavailableExtensions) { STDERR, sprintf( 'PHPUnit requires the "%s" extensions, but the "%s" %s not available.' . PHP_EOL, - count($unavailableExtensions) === 1 ? 'extension is' : 'extensions are', implode('", "', $requiredExtensions), - implode('", "', $unavailableExtensions) + implode('", "', $unavailableExtensions), + count($unavailableExtensions) === 1 ? 'extension is' : 'extensions are' ) );