瀏覽代碼

Remove type parameter from RepositoryInterface

Fixes #5458

Remove the `$type` parameter from `RepositoryInterface` to alleviate the BC break for plugins.
Pierre du Plessis 9 年之前
父節點
當前提交
f29b3e86ce
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/Composer/Repository/RepositoryInterface.php

+ 1 - 2
src/Composer/Repository/RepositoryInterface.php

@@ -67,9 +67,8 @@ interface RepositoryInterface extends \Countable
      *
      * @param  string $query search query
      * @param  int    $mode  a set of SEARCH_* constants to search on, implementations should do a best effort only
-     * @param  string $type  The type of package to search for. Defaults to all types of packages
      *
      * @return \array[] an array of array('name' => '...', 'description' => '...')
      */
-    public function search($query, $mode = 0, $type = null);
+    public function search($query, $mode = 0);
 }