Merge pull request #9345 from fabpot/error-message-fix

Fix error message
main
Nils Adermann 4 years ago committed by GitHub
commit 05ddae59e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save