1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 00:53:06 +00:00

Add parameter types to all the things

This commit is contained in:
Jordi Boggiano 2022-02-22 16:47:09 +01:00
parent c9baeda95b
commit 6da38f83a0
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
279 changed files with 1377 additions and 1504 deletions

View file

@ -47,7 +47,7 @@ class GitTest extends TestCase
* @param string $protocol
* @param string $expectedUrl
*/
public function testRunCommandPublicGitHubRepositoryNotInitialClone($protocol, $expectedUrl): void
public function testRunCommandPublicGitHubRepositoryNotInitialClone(string $protocol, string $expectedUrl): void
{
$commandCallable = function ($url) use ($expectedUrl): string {
$this->assertSame($expectedUrl, $url);
@ -99,7 +99,7 @@ class GitTest extends TestCase
* @param string $expectedUrl
* @param int $expectedFailuresBeforeSuccess
*/
public function testRunCommandPrivateGitHubRepositoryNotInitialCloneNotInteractiveWithAuthentication($gitUrl, $protocol, $gitHubToken, $expectedUrl, $expectedFailuresBeforeSuccess): void
public function testRunCommandPrivateGitHubRepositoryNotInitialCloneNotInteractiveWithAuthentication(string $gitUrl, string $protocol, string $gitHubToken, string $expectedUrl, int $expectedFailuresBeforeSuccess): void
{
$commandCallable = function ($url) use ($expectedUrl): string {
if ($url !== $expectedUrl) {
@ -148,7 +148,7 @@ class GitTest extends TestCase
*
* @return void
*/
private function mockConfig($protocol): void
private function mockConfig(string $protocol): void
{
$this->config
->method('get')