浏览代码

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

Niels Keurentjes 9 年之前
父节点
当前提交
a3b2628748
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
         }