Skip to content

Commit cfea9b1

Browse files
committed
Arguments array needs to be numerically indexed
The arguments array needs to be numerically indexed because the array unpacking operator (...) does not work with associative arrays.
1 parent e3d1af1 commit cfea9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ public static function callBase(
11541154

11551155
$arguments = array_merge([$name, $instance], $arguments);
11561156

1157-
$arguments = self::unwrap($arguments);
1157+
$arguments = array_values(self::unwrap($arguments));
11581158
$result = vips_call(...$arguments);
11591159
self::errorIsArray($result);
11601160
$result = self::wrapResult($result);

0 commit comments

Comments
 (0)