diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index b5d80cf05..aa59901ba 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -297,7 +297,7 @@ EOT { $name = strtolower($name); $constraint = null; - if ($version) { + if (is_string($version)) { $constraint = $this->versionParser->parseConstraints($version); }