Skip to content

Commit 33c8df0

Browse files
committed
Fix build
1 parent f083bfd commit 33c8df0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"php": "^5.3.2 || ^7.0 || ^8.0"
2222
},
2323
"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",
2626
"composer/composer": "^2"
2727
},
2828
"autoload": {

src/MetadataMinifier.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class MetadataMinifier
1616
/**
1717
* Expands an array of minified versions back to their original format
1818
*
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
2121
*/
2222
public static function expand(array $versions)
2323
{
@@ -48,8 +48,8 @@ public static function expand(array $versions)
4848
/**
4949
* Minifies an array of versions into a set of version diffs
5050
*
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
5353
*/
5454
public static function minify(array $versions)
5555
{

tests/MetadataMinifierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MetadataMinifierTest extends TestCase
2424
public function testMinifyExpand()
2525
{
2626
$package1 = new CompletePackage('foo/bar', '2.0.0.0', '2.0.0');
27-
$package1->setScripts(array('foo' => 'bar'));
27+
$package1->setScripts(array('foo' => ['bar']));
2828
$package1->setLicense(array('MIT'));
2929
$package2 = new CompletePackage('foo/bar', '1.2.0.0', '1.2.0');
3030
$package2->setLicense(array('GPL'));

0 commit comments

Comments
 (0)