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
|
@ -40,7 +40,7 @@ class CompletePackageTest extends TestCase
|
|||
* @param string $name
|
||||
* @param string $version
|
||||
*/
|
||||
public function testPackageHasExpectedNamingSemantics($name, $version): void
|
||||
public function testPackageHasExpectedNamingSemantics(string $name, string $version): void
|
||||
{
|
||||
$versionParser = new VersionParser();
|
||||
$normVersion = $versionParser->normalize($version);
|
||||
|
@ -54,7 +54,7 @@ class CompletePackageTest extends TestCase
|
|||
* @param string $name
|
||||
* @param string $version
|
||||
*/
|
||||
public function testPackageHasExpectedVersioningSemantics($name, $version): void
|
||||
public function testPackageHasExpectedVersioningSemantics(string $name, string $version): void
|
||||
{
|
||||
$versionParser = new VersionParser();
|
||||
$normVersion = $versionParser->normalize($version);
|
||||
|
@ -69,7 +69,7 @@ class CompletePackageTest extends TestCase
|
|||
* @param string $name
|
||||
* @param string $version
|
||||
*/
|
||||
public function testPackageHasExpectedMarshallingSemantics($name, $version): void
|
||||
public function testPackageHasExpectedMarshallingSemantics(string $name, string $version): void
|
||||
{
|
||||
$versionParser = new VersionParser();
|
||||
$normVersion = $versionParser->normalize($version);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue