mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +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
|
@ -64,12 +64,9 @@ EOT
|
|||
;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
$composer = $this->getComposer();
|
||||
$composer = $this->requireComposer();
|
||||
|
||||
$args = $input->getArguments();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue