mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
PHPStan level 6 in src/Composer/Command (#10214)
This commit is contained in:
parent
f667c7b8de
commit
3ccb54832b
32 changed files with 457 additions and 91 deletions
|
@ -36,6 +36,9 @@ use Symfony\Component\Console\Question\Question;
|
|||
*/
|
||||
class UpdateCommand extends BaseCommand
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this
|
||||
|
@ -105,6 +108,10 @@ EOT
|
|||
;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
* @throws \Exception
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$io = $this->getIO();
|
||||
|
@ -241,6 +248,10 @@ EOT
|
|||
return $install->run();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string> $packages
|
||||
* @return array<string>
|
||||
*/
|
||||
private function getPackagesInteractively(IOInterface $io, InputInterface $input, OutputInterface $output, Composer $composer, array $packages)
|
||||
{
|
||||
if (!$input->isInteractive()) {
|
||||
|
@ -305,6 +316,7 @@ EOT
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $constraint
|
||||
* @return Link
|
||||
*/
|
||||
private function appendConstraintToLink(Link $link, $constraint)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue