diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index 821e041c2..626d8c4ef 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -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