mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add return types to private/internal methods
This commit is contained in:
parent
abdc6893a6
commit
a16ed3d0ed
134 changed files with 365 additions and 359 deletions
|
@ -30,7 +30,7 @@ class StrictConfirmationQuestionTest extends TestCase
|
|||
*
|
||||
* @phpstan-return list<array{non-empty-string}>
|
||||
*/
|
||||
public function getAskConfirmationBadData()
|
||||
public function getAskConfirmationBadData(): array
|
||||
{
|
||||
return array(
|
||||
array('not correct'),
|
||||
|
@ -77,7 +77,7 @@ class StrictConfirmationQuestionTest extends TestCase
|
|||
*
|
||||
* @phpstan-return list<array{string, bool}>|list<array{string, bool, bool}>
|
||||
*/
|
||||
public function getAskConfirmationData()
|
||||
public function getAskConfirmationData(): array
|
||||
{
|
||||
return array(
|
||||
array('', true),
|
||||
|
@ -119,7 +119,7 @@ class StrictConfirmationQuestionTest extends TestCase
|
|||
/**
|
||||
* @return StreamOutput
|
||||
*/
|
||||
protected function createOutputInterface()
|
||||
protected function createOutputInterface(): StreamOutput
|
||||
{
|
||||
return new StreamOutput(fopen('php://memory', 'r+', false));
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ class StrictConfirmationQuestionTest extends TestCase
|
|||
*
|
||||
* @phpstan-return array{ArrayInput, QuestionHelper}
|
||||
*/
|
||||
protected function createInput($entry)
|
||||
protected function createInput($entry): array
|
||||
{
|
||||
$input = new ArrayInput(array('--no-interaction'));
|
||||
$input->setStream($this->getInputStream($entry));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue