1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 00:53:06 +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

@ -63,7 +63,7 @@ class AllFunctionalTest extends TestCase
$fs->removeDirectory(dirname(self::$pharPath));
}
public function testBuildPhar()
public function testBuildPhar(): void
{
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Building the phar does not work on HHVM.');
@ -100,7 +100,7 @@ class AllFunctionalTest extends TestCase
* @depends testBuildPhar
* @param string $testFile
*/
public function testIntegration($testFile)
public function testIntegration($testFile): void
{
$testData = $this->parseTestFile($testFile);
$this->testDir = self::getUniqueTmpDirectory();
@ -121,7 +121,7 @@ class AllFunctionalTest extends TestCase
$proc = Process::fromShellCommandline(escapeshellcmd(PHP_BINARY).' '.escapeshellarg(self::$pharPath).' --no-ansi '.$testData['RUN'], $this->testDir, $env, null, 300);
$output = '';
$exitCode = $proc->run(function ($type, $buffer) use (&$output) {
$exitCode = $proc->run(function ($type, $buffer) use (&$output): void {
$output .= $buffer;
});