From dbc78a50c880c5528553ae6ddb53b9dd6411e679 Mon Sep 17 00:00:00 2001 From: Dan Richards Date: Tue, 13 Sep 2016 10:18:37 -0400 Subject: [PATCH] Add new colors available in Trello There are a few colors missing that are available in Trello. --- lib/Trello/Api/Card/Labels.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Trello/Api/Card/Labels.php b/lib/Trello/Api/Card/Labels.php index a8cfbfd..3d4c7ea 100644 --- a/lib/Trello/Api/Card/Labels.php +++ b/lib/Trello/Api/Card/Labels.php @@ -29,7 +29,7 @@ class Labels extends AbstractApi public function set($id, array $labels) { foreach ($labels as $label) { - if (!in_array($label, array('all', 'green', 'yellow', 'orange', 'red', 'purple', 'blue'))) { + if (!in_array($label, array('all', 'green', 'yellow', 'orange', 'red', 'purple', 'blue', 'sky', 'lime', 'pink', 'black'))) { throw new InvalidArgumentException(sprintf('Label "%s" does not exist.', $label)); } } @@ -52,7 +52,7 @@ public function set($id, array $labels) */ public function remove($id, $label) { - if (!in_array($label, array('green', 'yellow', 'orange', 'red', 'purple', 'blue'))) { + if (!in_array($label, array('green', 'yellow', 'orange', 'red', 'purple', 'blue', 'sky', 'lime', 'pink', 'black'))) { throw new InvalidArgumentException(sprintf('Label "%s" does not exist.', $label)); }