Browse Source

Show -t incorrectly expanded self.version constraints. Fixes #4999

Niels Keurentjes 9 years ago
parent
commit
a3b2628748
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Command/ShowCommand.php

+ 1 - 1
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);
         }