From 1c73f078f7ec2e8048e98970ba1e617cc2d30b2c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 6 Apr 2020 21:17:03 +0200 Subject: [PATCH] Remove repository field from getProviders result --- src/Composer/Repository/ArrayRepository.php | 1 - src/Composer/Repository/ComposerRepository.php | 1 - src/Composer/Repository/RepositoryInterface.php | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Composer/Repository/ArrayRepository.php b/src/Composer/Repository/ArrayRepository.php index 69ea0d080..37a241cbc 100644 --- a/src/Composer/Repository/ArrayRepository.php +++ b/src/Composer/Repository/ArrayRepository.php @@ -221,7 +221,6 @@ class ArrayRepository implements RepositoryInterface 'name' => $candidate->getName(), 'description' => $candidate->getDescription(), 'type' => $candidate->getType(), - 'repository' => $candidate->getSourceUrl() ?: '', ); continue 2; } diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index dc455dc8d..e705e6852 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -444,7 +444,6 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito 'name' => $candidate['name'], 'description' => isset($candidate['description']) ? $candidate['description'] : '', 'type' => isset($candidate['type']) ? $candidate['type'] : '', - 'repository' => '', ); } } diff --git a/src/Composer/Repository/RepositoryInterface.php b/src/Composer/Repository/RepositoryInterface.php index 75813c085..98b616fa0 100644 --- a/src/Composer/Repository/RepositoryInterface.php +++ b/src/Composer/Repository/RepositoryInterface.php @@ -91,7 +91,7 @@ interface RepositoryInterface extends \Countable * * @param string $packageName package name which must be provided * - * @return array[] an array with the provider name as key and value of array('name' => '...', 'description' => '...', 'type' => '...', 'repository' => '...url to source repo if available...') + * @return array[] an array with the provider name as key and value of array('name' => '...', 'description' => '...', 'type' => '...') */ public function getProviders($packageName);