mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +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
|
@ -28,6 +28,9 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
*/
|
||||
class FundCommand extends BaseCommand
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('fund')
|
||||
|
@ -38,6 +41,9 @@ class FundCommand extends BaseCommand
|
|||
;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$composer = $this->getComposer();
|
||||
|
@ -125,6 +131,10 @@ class FundCommand extends BaseCommand
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array[] $fundings
|
||||
* @return array[]
|
||||
*/
|
||||
private function insertFundingData(array $fundings, CompletePackageInterface $package)
|
||||
{
|
||||
foreach ($package->getFunding() as $fundingOption) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue