From a3b2628748653a5a1c2140e187fdffe65e4ca99d Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Fri, 4 Mar 2016 08:20:35 +0100 Subject: [PATCH] Show -t incorrectly expanded self.version constraints. Fixes #4999 --- src/Composer/Command/ShowCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }