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

@ -46,7 +46,7 @@ class ProxyManagerTest extends TestCase
ProxyManager::reset();
}
public function testInstantiation()
public function testInstantiation(): void
{
$originalInstance = ProxyManager::getInstance();
$this->assertInstanceOf('Composer\Util\Http\ProxyManager', $originalInstance);
@ -59,7 +59,7 @@ class ProxyManagerTest extends TestCase
$this->assertFalse($sameInstance === $newInstance);
}
public function testGetProxyForRequestThrowsOnBadProxyUrl()
public function testGetProxyForRequestThrowsOnBadProxyUrl(): void
{
$_SERVER['http_proxy'] = 'localhost';
$proxyManager = ProxyManager::getInstance();
@ -77,7 +77,7 @@ class ProxyManagerTest extends TestCase
* @param bool $expectedSecure
* @param string $expectedMessage
*/
public function testGetProxyForRequest($server, $url, $expectedUrl, $expectedOptions, $expectedSecure, $expectedMessage)
public function testGetProxyForRequest($server, $url, $expectedUrl, $expectedOptions, $expectedSecure, $expectedMessage): void
{
$_SERVER = array_merge($_SERVER, $server);
$proxyManager = ProxyManager::getInstance();
@ -139,7 +139,7 @@ class ProxyManagerTest extends TestCase
* @param bool $expectedStatus
* @param string $expectedMessage
*/
public function testGetStatus($server, $expectedStatus, $expectedMessage)
public function testGetStatus($server, $expectedStatus, $expectedMessage): void
{
$_SERVER = array_merge($_SERVER, $server);
$proxyManager = ProxyManager::getInstance();