1
0
Fork 0

Fix error message

pull/9345/head
Fabien Potencier 2020-10-26 10:04:10 +01:00
parent 7fcf559f62
commit d5245387f3
1 changed files with 3 additions and 3 deletions

View File

@ -741,9 +741,9 @@ EOT
// Check whether the PHP version was the problem // Check whether the PHP version was the problem
if (true !== $ignorePlatformReqs && $versionSelector->findBestCandidate($name, $requiredVersion, $preferredStability, true)) { if (true !== $ignorePlatformReqs && $versionSelector->findBestCandidate($name, $requiredVersion, $preferredStability, true)) {
throw new \InvalidArgumentException(sprintf( throw new \InvalidArgumentException(sprintf(
'Package %s at version %s has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version', 'Package %s%s has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version',
$name, $name,
$requiredVersion $requiredVersion ? ' at version '.$requiredVersion : '',
)); ));
} }
// Check whether the required version was the problem // Check whether the required version was the problem
@ -751,7 +751,7 @@ EOT
throw new \InvalidArgumentException(sprintf( throw new \InvalidArgumentException(sprintf(
'Could not find package %s in a version matching %s', 'Could not find package %s in a version matching %s',
$name, $name,
$requiredVersion $requiredVersion ?: '*',
)); ));
} }
// Check whether the PHP version was the problem for all versions // Check whether the PHP version was the problem for all versions