瀏覽代碼

Fix usage

Jordi Boggiano 4 年之前
父節點
當前提交
1d68e85433
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Command/CreateProjectCommand.php

+ 1 - 1
src/Composer/Command/CreateProjectCommand.php

@@ -344,7 +344,7 @@ EOT
 
         // find the latest version if there are multiple
         $versionSelector = new VersionSelector($repositorySet, $platformRepo);
-        $package = $versionSelector->findBestCandidate($name, $packageVersion, $phpVersion, $stability);
+        $package = $versionSelector->findBestCandidate($name, $packageVersion, $stability);
 
         if (!$package) {
             $errorMessage = "Could not find package $name with " . ($packageVersion ? "version $packageVersion" : "stability $stability");