1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-08 16:17:37 +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

@ -18,7 +18,7 @@ use Composer\Test\TestCase;
class ArrayRepositoryTest extends TestCase
{
public function testAddPackage()
public function testAddPackage(): void
{
$repo = new ArrayRepository;
$repo->addPackage($this->getPackage('foo', '1'));
@ -26,7 +26,7 @@ class ArrayRepositoryTest extends TestCase
$this->assertCount(1, $repo);
}
public function testRemovePackage()
public function testRemovePackage(): void
{
$package = $this->getPackage('bar', '2');
@ -42,7 +42,7 @@ class ArrayRepositoryTest extends TestCase
$this->assertEquals(array($package), $repo->getPackages());
}
public function testHasPackage()
public function testHasPackage(): void
{
$repo = new ArrayRepository;
$repo->addPackage($this->getPackage('foo', '1'));
@ -52,7 +52,7 @@ class ArrayRepositoryTest extends TestCase
$this->assertFalse($repo->hasPackage($this->getPackage('bar', '1')));
}
public function testFindPackages()
public function testFindPackages(): void
{
$repo = new ArrayRepository();
$repo->addPackage($this->getPackage('foo', '1'));
@ -68,7 +68,7 @@ class ArrayRepositoryTest extends TestCase
$this->assertEquals('bar', $bar[0]->getName());
}
public function testAutomaticallyAddAliasedPackageButNotRemove()
public function testAutomaticallyAddAliasedPackageButNotRemove(): void
{
$repo = new ArrayRepository();
@ -86,7 +86,7 @@ class ArrayRepositoryTest extends TestCase
$this->assertCount(1, $repo);
}
public function testSearch()
public function testSearch(): void
{
$repo = new ArrayRepository();
@ -108,7 +108,7 @@ class ArrayRepositoryTest extends TestCase
);
}
public function testSearchWithPackageType()
public function testSearchWithPackageType(): void
{
$repo = new ArrayRepository();
@ -132,7 +132,7 @@ class ArrayRepositoryTest extends TestCase
);
}
public function testSearchWithAbandonedPackages()
public function testSearchWithAbandonedPackages(): void
{
$repo = new ArrayRepository();