File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 21
21
"php" : " ^5.3.2 || ^7.0 || ^8.0"
22
22
},
23
23
"require-dev" : {
24
- "symfony/phpunit-bridge" : " ^4.2 || ^5" ,
25
- "phpstan/phpstan" : " ^0.12.55 " ,
24
+ "symfony/phpunit-bridge" : " ^4.2 || ^5 || ^6 || ^7 " ,
25
+ "phpstan/phpstan" : " ^1 " ,
26
26
"composer/composer" : " ^2"
27
27
},
28
28
"autoload" : {
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ class MetadataMinifier
16
16
/**
17
17
* Expands an array of minified versions back to their original format
18
18
*
19
- * @param array[] $versions A list of minified version arrays
20
- * @return array[] A list of version arrays
19
+ * @param list<mixed> $versions A list of minified version arrays
20
+ * @return list<mixed> A list of version arrays
21
21
*/
22
22
public static function expand (array $ versions )
23
23
{
@@ -48,8 +48,8 @@ public static function expand(array $versions)
48
48
/**
49
49
* Minifies an array of versions into a set of version diffs
50
50
*
51
- * @param array[] $versions A list of version arrays
52
- * @return array[] A list of versions minified with each array only containing the differences to the previous one
51
+ * @param list<mixed> $versions A list of version arrays
52
+ * @return list<mixed> A list of versions minified with each array only containing the differences to the previous one
53
53
*/
54
54
public static function minify (array $ versions )
55
55
{
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class MetadataMinifierTest extends TestCase
24
24
public function testMinifyExpand ()
25
25
{
26
26
$ package1 = new CompletePackage ('foo/bar ' , '2.0.0.0 ' , '2.0.0 ' );
27
- $ package1 ->setScripts (array ('foo ' => 'bar ' ));
27
+ $ package1 ->setScripts (array ('foo ' => [ 'bar ' ] ));
28
28
$ package1 ->setLicense (array ('MIT ' ));
29
29
$ package2 = new CompletePackage ('foo/bar ' , '1.2.0.0 ' , '1.2.0 ' );
30
30
$ package2 ->setLicense (array ('GPL ' ));
You can’t perform that action at this time.
0 commit comments