From cdc6a87e8d308c650ba844f93b8f987f2910fb0c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 23 Apr 2020 11:01:44 +0200 Subject: [PATCH] Fix docblock --- src/Composer/Installer/SuggestedPackagesReporter.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Composer/Installer/SuggestedPackagesReporter.php b/src/Composer/Installer/SuggestedPackagesReporter.php index 4d8de6086..56fe4599f 100644 --- a/src/Composer/Installer/SuggestedPackagesReporter.php +++ b/src/Composer/Installer/SuggestedPackagesReporter.php @@ -99,8 +99,8 @@ class SuggestedPackagesReporter * Do not list the ones already installed if installed repository provided. * * @param int $mode One of the MODE_* constants from this class - * @param InstalledRepository $installedRepo If passed in, suggested packages which are installed already will be skipped - * @param PackageInterface $onlyDependentsOf If passed in, only the suggestions from direct dependents of that package, or from the package itself, will be shown + * @param InstalledRepository|null $installedRepo If passed in, suggested packages which are installed already will be skipped + * @param PackageInterface|null $onlyDependentsOf If passed in, only the suggestions from direct dependents of that package, or from the package itself, will be shown * @return SuggestedPackagesReporter */ public function output($mode, InstalledRepository $installedRepo = null, PackageInterface $onlyDependentsOf = null) @@ -167,8 +167,8 @@ class SuggestedPackagesReporter /** * Output number of new suggested packages and a hint to use suggest command. * - * @param InstalledRepository $installedRepo If passed in, suggested packages which are installed already will be skipped - * @param PackageInterface $onlyDependentsOf If passed in, only the suggestions from direct dependents of that package, or from the package itself, will be shown + * @param InstalledRepository|null $installedRepo If passed in, suggested packages which are installed already will be skipped + * @param PackageInterface|null $onlyDependentsOf If passed in, only the suggestions from direct dependents of that package, or from the package itself, will be shown * @return SuggestedPackagesReporter */ public function outputMinimalistic(InstalledRepository $installedRepo = null, PackageInterface $onlyDependentsOf = null) @@ -182,8 +182,8 @@ class SuggestedPackagesReporter } /** - * @param InstalledRepository $installedRepo If passed in, suggested packages which are installed already will be skipped - * @param PackageInterface $onlyDependentsOf If passed in, only the suggestions from direct dependents of that package, or from the package itself, will be shown + * @param InstalledRepository|null $installedRepo If passed in, suggested packages which are installed already will be skipped + * @param PackageInterface|null $onlyDependentsOf If passed in, only the suggestions from direct dependents of that package, or from the package itself, will be shown * @return array[] */ private function getFilteredSuggestions(InstalledRepository $installedRepo = null, PackageInterface $onlyDependentsOf = null)