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:
parent
48758c0207
commit
5c98a2cf8e
51 changed files with 923 additions and 1627 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue