1
0
Fork 0

Fix DownloaderInterface return types

pull/9730/head
Jordi Boggiano 2021-02-25 13:18:08 +01:00
parent b3951b8804
commit fd88b3d48d
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 10 additions and 7 deletions

View File

@ -58,6 +58,7 @@ interface DownloaderInterface
*
* @param PackageInterface $package package instance
* @param string $path download path
* @return PromiseInterface|null
*/
public function install(PackageInterface $package, $path);
@ -67,6 +68,7 @@ interface DownloaderInterface
* @param PackageInterface $initial initial package
* @param PackageInterface $target updated package
* @param string $path download path
* @return PromiseInterface|null
*/
public function update(PackageInterface $initial, PackageInterface $target, $path);
@ -75,6 +77,7 @@ interface DownloaderInterface
*
* @param PackageInterface $package package instance
* @param string $path download path
* @return PromiseInterface|null
*/
public function remove(PackageInterface $package, $path);