From fd88b3d48ddd3cc9fbd67e9f27e964ab617270d0 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 25 Feb 2021 13:18:08 +0100 Subject: [PATCH] Fix DownloaderInterface return types --- src/Composer/Downloader/DownloaderInterface.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Composer/Downloader/DownloaderInterface.php b/src/Composer/Downloader/DownloaderInterface.php index 761d1a361..8c4a7595e 100644 --- a/src/Composer/Downloader/DownloaderInterface.php +++ b/src/Composer/Downloader/DownloaderInterface.php @@ -56,25 +56,28 @@ interface DownloaderInterface /** * Installs specific package into specific folder. * - * @param PackageInterface $package package instance - * @param string $path download path + * @param PackageInterface $package package instance + * @param string $path download path + * @return PromiseInterface|null */ public function install(PackageInterface $package, $path); /** * Updates specific package in specific folder from initial to target version. * - * @param PackageInterface $initial initial package - * @param PackageInterface $target updated package - * @param string $path download path + * @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); /** * Removes specific package from specific folder. * - * @param PackageInterface $package package instance - * @param string $path download path + * @param PackageInterface $package package instance + * @param string $path download path + * @return PromiseInterface|null */ public function remove(PackageInterface $package, $path);