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

Add void types where no return statement is present

This commit is contained in:
Jordi Boggiano 2022-02-18 10:38:54 +01:00
parent 32852304d0
commit abdc6893a6
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
213 changed files with 1129 additions and 1130 deletions

View file

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