From 1cb588200e7a385892d34a154ae5f93812ce6955 Mon Sep 17 00:00:00 2001 From: Anne Douwe Bouma Date: Mon, 2 Oct 2017 11:28:51 +0200 Subject: [PATCH] array_key_exists instead of isset @JacobSteringa pointed out that isset would return false if there's a falsey value in the entries --- src/Container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Container.php b/src/Container.php index 9f382bc..964069c 100644 --- a/src/Container.php +++ b/src/Container.php @@ -36,7 +36,7 @@ public function get($id) */ public function has($id) { - if (isset($this->entries[$id])) { + if (array_key_exists($id, $this->entries)) { return true; }