From 59c831c2f8ab8ffe740614de9037a0dbb247900e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 9 Apr 2020 11:50:37 +0200 Subject: [PATCH] Add docs to loadPackages --- src/Composer/Repository/RepositoryInterface.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/RepositoryInterface.php b/src/Composer/Repository/RepositoryInterface.php index 0ff6168f0..317368d10 100644 --- a/src/Composer/Repository/RepositoryInterface.php +++ b/src/Composer/Repository/RepositoryInterface.php @@ -66,10 +66,13 @@ interface RepositoryInterface extends \Countable /** * Returns list of registered packages with the supplied name * + * - The packages returned are the packages found which match the constraints, acceptable stability and stability flags provided + * - The namesFound returned are names which should be considered as canonically found in this repository, that should not be looked up in any further lower priority repositories + * * @param ConstraintInterface[] $packageNameMap package names pointing to constraints * @param array $acceptableStabilities * @param array $stabilityFlags - * + * * @return array [namesFound => string[], packages => PackageInterface[]] * @psalm-return array{namesFound: string[], packages: PackageInterface[]} */