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

@ -28,7 +28,7 @@ class ComposerRepositoryTest extends TestCase
* @param mixed[] $expected
* @param array<string, mixed> $repoPackages
*/
public function testLoadData(array $expected, array $repoPackages)
public function testLoadData(array $expected, array $repoPackages): void
{
$repoConfig = array(
'url' => 'http://example.org',
@ -92,7 +92,7 @@ class ComposerRepositoryTest extends TestCase
);
}
public function testWhatProvides()
public function testWhatProvides(): void
{
$repo = $this->getMockBuilder('Composer\Repository\ComposerRepository')
->setConstructorArgs(array(
@ -156,7 +156,7 @@ class ComposerRepositoryTest extends TestCase
$this->assertSame($packages['2'], $packages['2-alias']->getAliasOf());
}
public function testSearchWithType()
public function testSearchWithType(): void
{
$repoConfig = array(
'url' => 'http://example.org',
@ -198,7 +198,7 @@ class ComposerRepositoryTest extends TestCase
);
}
public function testSearchWithSpecialChars()
public function testSearchWithSpecialChars(): void
{
$repoConfig = array(
'url' => 'http://example.org',
@ -225,7 +225,7 @@ class ComposerRepositoryTest extends TestCase
);
}
public function testSearchWithAbandonedPackages()
public function testSearchWithAbandonedPackages(): void
{
$repoConfig = array(
'url' => 'http://example.org',
@ -279,7 +279,7 @@ class ComposerRepositoryTest extends TestCase
* @param string $url
* @param string $repositoryUrl
*/
public function testCanonicalizeUrl($expected, $url, $repositoryUrl)
public function testCanonicalizeUrl($expected, $url, $repositoryUrl): void
{
$repository = new ComposerRepository(
array('url' => $repositoryUrl),
@ -341,7 +341,7 @@ class ComposerRepositoryTest extends TestCase
);
}
public function testGetProviderNamesWillReturnPartialPackageNames()
public function testGetProviderNamesWillReturnPartialPackageNames(): void
{
$httpDownloader = $this->getHttpDownloaderMock();
$httpDownloader->expects(