Skip to content

Commit aa74242

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ImageVariantCollection.php

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

91-
/** @var callable $callback */
92-
$callback = [$variant, $method];
91+
/** @var array<mixed> $parameters */
92+
$parameters = self::filterArgs($variant, $method, $args);
9393
$variant = call_user_func_array(
94-
$callback,
95-
self::filterArgs($variant, $method, $args)
94+
[$variant, $method],
95+
$parameters
9696
);
9797
}
9898

0 commit comments

Comments
 (0)