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:
parent
32852304d0
commit
abdc6893a6
213 changed files with 1129 additions and 1130 deletions
|
@ -42,7 +42,7 @@ class RootPackageLoaderTest extends TestCase
|
|||
return $loader->load($data);
|
||||
}
|
||||
|
||||
public function testStabilityFlagsParsing()
|
||||
public function testStabilityFlagsParsing(): void
|
||||
{
|
||||
$package = $this->loadPackage(array(
|
||||
'require' => array(
|
||||
|
@ -70,7 +70,7 @@ class RootPackageLoaderTest extends TestCase
|
|||
), $package->getStabilityFlags());
|
||||
}
|
||||
|
||||
public function testNoVersionIsVisibleInPrettyVersion()
|
||||
public function testNoVersionIsVisibleInPrettyVersion(): void
|
||||
{
|
||||
$manager = $this->getMockBuilder('Composer\\Repository\\RepositoryManager')
|
||||
->disableOriginalConstructor()
|
||||
|
@ -88,7 +88,7 @@ class RootPackageLoaderTest extends TestCase
|
|||
$this->assertEquals(RootPackage::DEFAULT_PRETTY_VERSION, $package->getPrettyVersion());
|
||||
}
|
||||
|
||||
public function testPrettyVersionForRootPackageInVersionBranch()
|
||||
public function testPrettyVersionForRootPackageInVersionBranch(): void
|
||||
{
|
||||
// see #6845
|
||||
$manager = $this->getMockBuilder('Composer\\Repository\\RepositoryManager')->disableOriginalConstructor()->getMock();
|
||||
|
@ -109,7 +109,7 @@ class RootPackageLoaderTest extends TestCase
|
|||
$this->assertEquals('3.0-dev', $package->getPrettyVersion());
|
||||
}
|
||||
|
||||
public function testFeatureBranchPrettyVersion()
|
||||
public function testFeatureBranchPrettyVersion(): void
|
||||
{
|
||||
if (!function_exists('proc_open')) {
|
||||
$this->markTestSkipped('proc_open() is not available');
|
||||
|
@ -137,7 +137,7 @@ class RootPackageLoaderTest extends TestCase
|
|||
$this->assertEquals("dev-master", $package->getPrettyVersion());
|
||||
}
|
||||
|
||||
public function testNonFeatureBranchPrettyVersion()
|
||||
public function testNonFeatureBranchPrettyVersion(): void
|
||||
{
|
||||
if (!function_exists('proc_open')) {
|
||||
$this->markTestSkipped('proc_open() is not available');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue