Parcourir la source

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

Niels Keurentjes il y a 9 ans
Parent
commit
a3b2628748
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
         }