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
|
@ -29,7 +29,7 @@ class JsonConfigSourceTest extends TestCase
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function fixturePath($name)
|
||||
protected function fixturePath($name): string
|
||||
{
|
||||
return __DIR__.'/Fixtures/'.$name;
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ class JsonConfigSourceTest extends TestCase
|
|||
*
|
||||
* @phpstan-return array{string, string, string, string, string}
|
||||
*/
|
||||
protected function addLinkDataArguments($type, $name, $value, $fixtureBasename, $before)
|
||||
protected function addLinkDataArguments($type, $name, $value, $fixtureBasename, $before): array
|
||||
{
|
||||
return array(
|
||||
$before,
|
||||
|
@ -217,7 +217,7 @@ class JsonConfigSourceTest extends TestCase
|
|||
*
|
||||
* @phpstan-return array{string, string, string, string}
|
||||
*/
|
||||
protected function removeLinkDataArguments($type, $name, $fixtureBasename, $after = null)
|
||||
protected function removeLinkDataArguments($type, $name, $fixtureBasename, $after = null): array
|
||||
{
|
||||
return array(
|
||||
$this->fixturePath('removeLink/'.$fixtureBasename.'.json'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue