1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add parameter types to all the things

This commit is contained in:
Jordi Boggiano 2022-02-22 16:47:09 +01:00
parent c9baeda95b
commit 6da38f83a0
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
279 changed files with 1377 additions and 1504 deletions

View file

@ -21,9 +21,9 @@ class ConfigTest extends TestCase
* @dataProvider dataAddPackagistRepository
* @param mixed[] $expected
* @param mixed[] $localConfig
* @param ?mixed[] $systemConfig
* @param ?array<mixed> $systemConfig
*/
public function testAddPackagistRepository($expected, $localConfig, $systemConfig = null): void
public function testAddPackagistRepository(array $expected, array $localConfig, ?array $systemConfig = null): void
{
$config = new Config(false);
if ($systemConfig) {
@ -247,7 +247,7 @@ class ConfigTest extends TestCase
*
* @param string $url
*/
public function testAllowedUrlsPass($url): void
public function testAllowedUrlsPass(string $url): void
{
$config = new Config(false);
$config->prohibitUrlByConfig($url);
@ -258,7 +258,7 @@ class ConfigTest extends TestCase
*
* @param string $url
*/
public function testProhibitedUrlsThrowException($url): void
public function testProhibitedUrlsThrowException(string $url): void
{
self::expectException('Composer\Downloader\TransportException');
self::expectExceptionMessage('Your configuration does not allow connections to ' . $url);