瀏覽代碼

Remove superfluous string casts

Nils Adermann 11 年之前
父節點
當前提交
eb5c785dcd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/DependencyResolver/Pool.php

+ 1 - 1
src/Composer/DependencyResolver/Pool.php

@@ -235,7 +235,7 @@ class Pool
      */
     public function whatProvides($name, LinkConstraintInterface $constraint = null, $mustMatchName = false)
     {
-        $key = ((string) (int) $mustMatchName).((string) $constraint);
+        $key = ((int) $mustMatchName).$constraint;
         if (isset($this->providerCache[$name][$key])) {
             return $this->providerCache[$name][$key];
         }