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:
parent
c9baeda95b
commit
6da38f83a0
279 changed files with 1377 additions and 1504 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue