lbacik/value-object

Comparison issue

Closed this issue · 0 comments

if (isset($b[$key]) === false || $this->compare($item, $b[$key]) === false) {

Taking into account that:

$a = ['key' => null];
isset($a['key']) === false; // TRUE

above code will always return false then the value of a given key will be null - what is rather not desired :)