diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index a07162119..821e041c2 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -743,7 +743,7 @@ EOT throw new \InvalidArgumentException(sprintf( 'Package %s%s has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version', $name, - $requiredVersion ? ' at version '.$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