mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +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
|
@ -299,7 +299,7 @@ class VersionSelectorTest extends TestCase
|
|||
* @param string|null $branchAlias
|
||||
* @param string $packageName
|
||||
*/
|
||||
public function testFindRecommendedRequireVersion($prettyVersion, $expectedVersion, $branchAlias = null, $packageName = 'foo/bar'): void
|
||||
public function testFindRecommendedRequireVersion(string $prettyVersion, string $expectedVersion, ?string $branchAlias = null, string $packageName = 'foo/bar'): void
|
||||
{
|
||||
$repositorySet = $this->createMockRepositorySet();
|
||||
$versionSelector = new VersionSelector($repositorySet);
|
||||
|
@ -362,7 +362,7 @@ class VersionSelectorTest extends TestCase
|
|||
*
|
||||
* @return Package
|
||||
*/
|
||||
private function createPackage($version): Package
|
||||
private function createPackage(string $version): Package
|
||||
{
|
||||
$parser = new VersionParser();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue