From a0865766b3f648c0b21ddbb31d0763dd08616ac8 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 29 Aug 2019 07:45:08 +0100 Subject: [PATCH] fix: warning: undefined index for $cache['labels'] --- src/Repo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repo.php b/src/Repo.php index 530c869..362b2a9 100644 --- a/src/Repo.php +++ b/src/Repo.php @@ -33,7 +33,7 @@ class Repo{ } public function getLabelByName($name){ - if(!$this->cache['lables']){ + if(!isset($this->cache['lables'])){ $url="repos/{$this->user}/{$this->repo}/labels"; $this->cache['lables']=$this->client->request($url); }