1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Add missing return types

This commit is contained in:
Jordi Boggiano 2022-07-01 12:24:54 +02:00
parent 726669084b
commit 1703b74e73
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC

View file

@ -409,7 +409,7 @@ class ConfigTest extends TestCase
}
}
public function testMergesPluginConfig()
public function testMergesPluginConfig(): void
{
$config = new Config(false);
$config->merge(array('config' => array('allow-plugins' => array('some/plugin' => true))));
@ -419,7 +419,7 @@ class ConfigTest extends TestCase
$this->assertEquals(array('some/plugin' => true, 'another/plugin' => true), $config->get('allow-plugins'));
}
public function testOverridesGlobalBooleanPluginsConfig()
public function testOverridesGlobalBooleanPluginsConfig(): void
{
$config = new Config(false);
$config->merge(array('config' => array('allow-plugins' => true)));
@ -429,7 +429,7 @@ class ConfigTest extends TestCase
$this->assertEquals(array('another/plugin' => true), $config->get('allow-plugins'));
}
public function testAllowsAllPluginsFromLocalBoolean()
public function testAllowsAllPluginsFromLocalBoolean(): void
{
$config = new Config(false);
$config->merge(array('config' => array('allow-plugins' => array('some/plugin' => true))));