Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Feb 17, 2025
1 parent f083bfd commit 33c8df0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"php": "^5.3.2 || ^7.0 || ^8.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.2 || ^5",
"phpstan/phpstan": "^0.12.55",
"symfony/phpunit-bridge": "^4.2 || ^5 || ^6 || ^7",
"phpstan/phpstan": "^1",
"composer/composer": "^2"
},
"autoload": {
Expand Down
8 changes: 4 additions & 4 deletions src/MetadataMinifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class MetadataMinifier
/**
* Expands an array of minified versions back to their original format
*
* @param array[] $versions A list of minified version arrays
* @return array[] A list of version arrays
* @param list<mixed> $versions A list of minified version arrays
* @return list<mixed> A list of version arrays
*/
public static function expand(array $versions)
{
Expand Down Expand Up @@ -48,8 +48,8 @@ public static function expand(array $versions)
/**
* Minifies an array of versions into a set of version diffs
*
* @param array[] $versions A list of version arrays
* @return array[] A list of versions minified with each array only containing the differences to the previous one
* @param list<mixed> $versions A list of version arrays
* @return list<mixed> A list of versions minified with each array only containing the differences to the previous one
*/
public static function minify(array $versions)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/MetadataMinifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MetadataMinifierTest extends TestCase
public function testMinifyExpand()
{
$package1 = new CompletePackage('foo/bar', '2.0.0.0', '2.0.0');
$package1->setScripts(array('foo' => 'bar'));
$package1->setScripts(array('foo' => ['bar']));
$package1->setLicense(array('MIT'));
$package2 = new CompletePackage('foo/bar', '1.2.0.0', '1.2.0');
$package2->setLicense(array('GPL'));
Expand Down

0 comments on commit 33c8df0

Please sign in to comment.