Skip to content

Commit

Permalink
Fix isset returning false if data collection key had null value
Browse files Browse the repository at this point in the history
  • Loading branch information
tr33m4n committed Nov 16, 2021
1 parent b48b5ee commit 90380fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/DataCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 90380fd

Please sign in to comment.