color-extractor icon indicating copy to clipboard operation
color-extractor copied to clipboard

If no interesting colours, return empty array

Open DaveChild opened this issue 4 years ago • 1 comments

If $colors has zero elements, the "$labCache = new \SplFixedArray($limit - 1);" line will error while trying to create an array with -1 elements.

DaveChild avatar Jun 01 '20 18:06 DaveChild

Fixed in v0.4.0. Thanks for the PR!

colinodell avatar Sep 24 '22 16:09 colinodell