1
0
Fork 0
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:
Jordi Boggiano 2022-02-16 13:24:57 +01:00 committed by GitHub
parent 48758c0207
commit 5c98a2cf8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 923 additions and 1627 deletions

View file

@ -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);
}