xp-framework/xp-framework — Issue #84: Hashmap.containsKey returns false for NULL-values
Author: iigorr
Created: 2011-11-28 16:02:15+00:00
State: open

```php
put("myKey", NULL);

$this->assertTrue($map->containsKey("myKey"));
}
...?>
```

=> unittest.AssertionFailedError (nottrue) { expected: [boolean:true] but was: [boolean:false] }

The fix would be to use array_key_exists($key, $this->_hash); instead of isset($this->_hash[$key]);

Is there any other reason to not apply this fix?