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
|
@ -27,6 +27,10 @@ class ScriptAliasCommand extends BaseCommand
|
|||
/** @var string */
|
||||
private $description;
|
||||
|
||||
/**
|
||||
* @param string $script
|
||||
* @param string $description
|
||||
*/
|
||||
public function __construct($script, $description)
|
||||
{
|
||||
$this->script = $script;
|
||||
|
@ -35,6 +39,9 @@ class ScriptAliasCommand extends BaseCommand
|
|||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this
|
||||
|
@ -57,6 +64,9 @@ EOT
|
|||
;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$composer = $this->getComposer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue