Explorar o código

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

Niels Keurentjes %!s(int64=9) %!d(string=hai) anos
pai
achega
a3b2628748
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
         }