mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add return types to tests (#10)
This commit is contained in:
parent
1321bfca36
commit
e9b60580f5
62 changed files with 153 additions and 155 deletions
|
@ -76,7 +76,7 @@ class RepositoryManagerTest extends TestCase
|
|||
$config
|
||||
->expects($this->any())
|
||||
->method('get')
|
||||
->will($this->returnCallback(function ($arg) use ($tmpdir) {
|
||||
->will($this->returnCallback(function ($arg) use ($tmpdir): ?string {
|
||||
return 'cache-repo-dir' === $arg ? $tmpdir : null;
|
||||
}))
|
||||
;
|
||||
|
@ -95,7 +95,7 @@ class RepositoryManagerTest extends TestCase
|
|||
$this->assertInstanceOf('Composer\Repository\RepositoryInterface', $rm->createRepository($type, $options));
|
||||
}
|
||||
|
||||
public function provideRepoCreationTestCases()
|
||||
public function provideRepoCreationTestCases(): array
|
||||
{
|
||||
$cases = array(
|
||||
array('composer', array('url' => 'http://example.org')),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue