mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +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
|
@ -80,10 +80,10 @@ class RunScriptCommandTest extends TestCase
|
|||
'mergeApplicationDefinition',
|
||||
'getSynopsis',
|
||||
'initialize',
|
||||
'getComposer',
|
||||
'requireComposer',
|
||||
))
|
||||
->getMock();
|
||||
$command->expects($this->any())->method('getComposer')->willReturn($composer);
|
||||
$command->expects($this->any())->method('requireComposer')->willReturn($composer);
|
||||
|
||||
$command->run($input, $output);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue