From 289972a177108aaf0be7dbb000e8b47c54cdac7c Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Mon, 26 Oct 2020 13:29:23 +0100 Subject: [PATCH] Remove useless null check, follow up to #9345 --- src/Composer/Command/InitCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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