1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Add phpstan-symfony to get type info about console InputInterface, fix many errors (#10476)

Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
This commit is contained in:
Jordi Boggiano 2022-02-16 13:24:57 +01:00 committed by GitHub
parent 48758c0207
commit 5c98a2cf8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 923 additions and 1627 deletions

View file

@ -43,12 +43,9 @@ class FundCommand extends BaseCommand
;
}
/**
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$composer = $this->getComposer();
$composer = $this->requireComposer();
$repo = $composer->getRepositoryManager()->getLocalRepository();
$remoteRepos = new CompositeRepository($composer->getRepositoryManager()->getRepositories());