From 90380fd9d4ef72f926e76f487b924d803e34c1d9 Mon Sep 17 00:00:00 2001 From: Daniel Doyle Date: Tue, 16 Nov 2021 10:08:04 +0000 Subject: [PATCH] Fix `isset` returning `false` if data collection key had `null` value --- src/Data/DataCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/DataCollection.php b/src/Data/DataCollection.php index 68d6127..9af59a9 100644 --- a/src/Data/DataCollection.php +++ b/src/Data/DataCollection.php @@ -71,7 +71,7 @@ public function add(array $keyValuePairs): DataCollectionInterface */ public function has(string $key): bool { - return isset($this->data[$key]); + return array_key_exists($key, $this->data); } /**