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

@ -92,7 +92,7 @@ class GitLabDriverTest extends TestCase
* @param string $url
* @param string $apiUrl
*/
public function testInitialize($url, $apiUrl): \Composer\Repository\Vcs\GitLabDriver
public function testInitialize(string $url, string $apiUrl): GitLabDriver
{
// @link http://doc.gitlab.com/ce/api/projects.html#get-single-project
$projectData = <<<JSON
@ -135,7 +135,7 @@ JSON;
* @param string $url
* @param string $apiUrl
*/
public function testInitializePublicProject($url, $apiUrl): \Composer\Repository\Vcs\GitLabDriver
public function testInitializePublicProject(string $url, string $apiUrl): GitLabDriver
{
// @link http://doc.gitlab.com/ce/api/projects.html#get-single-project
$projectData = <<<JSON
@ -176,7 +176,7 @@ JSON;
* @param string $url
* @param string $apiUrl
*/
public function testInitializePublicProjectAsAnonymous($url, $apiUrl): \Composer\Repository\Vcs\GitLabDriver
public function testInitializePublicProjectAsAnonymous(string $url, string $apiUrl): GitLabDriver
{
// @link http://doc.gitlab.com/ce/api/projects.html#get-single-project
$projectData = <<<JSON
@ -444,7 +444,7 @@ JSON;
* @param string $url
* @param bool $expected
*/
public function testSupports($url, $expected): void
public function testSupports(string $url, bool $expected): void
{
$this->assertSame($expected, GitLabDriver::supports($this->io, $this->config, $url));
}