We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e83bd56 + 60ac90f commit 66acc33Copy full SHA for 66acc33
src/Image.php
@@ -1646,9 +1646,7 @@ public function bandjoin($other, array $options = []): Image
1646
{
1647
/* Allow a single unarrayed value as well.
1648
*/
1649
- if (!is_array($other)) {
1650
- $other = [$other];
1651
- }
+ $other = (array) $other;
1652
1653
/* If $other is all numbers, we can use self::bandjoin_const().
1654
@@ -1712,9 +1710,7 @@ public function bandrank($other, array $options = []): Image
1712
1710
1713
1711
1714
1715
1716
1717
1718
1719
return self::call('bandrank', $this, $other, $options);
1720
}
0 commit comments