Skip to content

Commit c009be8

Browse files
committed
Fix up PHPStan latest
1 parent dacc811 commit c009be8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.phive/phars.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<phar url="someone/somerepo" />
2929
-->
3030
<phar name="phpunit" version="^9.5" installed="9.5.26" location="./bin/phpunit" copy="true"/>
31-
<phar name="phpstan" version="^1.8.10" installed="1.9.0" location="./bin/phpstan" copy="true"/>
31+
<phar name="phpstan" version="^1.8.10" installed="1.9.2" location="./bin/phpstan" copy="true"/>
3232
<phar name="phpcs" version="^3.5.3" installed="3.7.1" location="./bin/phpcs" copy="true"/>
3333
<phar name="phpcbf" version="^3.5.3" installed="3.7.1" location="./bin/phpcbf" copy="true"/>
3434
<phar name="grumphp" version="^0.19.1" installed="0.19.1" location="./bin/grumphp" copy="true"/>

src/ImageVariantCollection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ public static function fromArray(array $variants)
8888
UnsupportedOperationException::withName($method);
8989
}
9090

91+
/** @var callable $callback */
92+
$callback = [$variant, $method];
9193
$variant = call_user_func_array(
92-
[$variant, $method],
94+
$callback,
9395
self::filterArgs($variant, $method, $args)
9496
);
9597
}

0 commit comments

Comments
 (0)