Closed Asedol closed 2 years ago
Dude, fix getColorCount in Palette class. Something like this: public function getColorCount($color) { if(array_key_exists($color, $this->colors)) { return $this->colors[$color]; } return 0; }
public function getColorCount($color) { if(array_key_exists($color, $this->colors)) { return $this->colors[$color]; } return 0; }
Fixed in v0.4.0 via 21fcac6. Thanks for the report!
Dude, fix getColorCount in Palette class. Something like this:
public function getColorCount($color) { if(array_key_exists($color, $this->colors)) { return $this->colors[$color]; } return 0; }