We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8539e28 + 70faf59 commit 7405177Copy full SHA for 7405177
main/Base/Hstore.class.php
@@ -85,7 +85,7 @@ public function drop($key)
85
86
public function isExists($key)
87
{
88
- return isset($this->properties[$key]);
+ return key_exists($key, $this->properties);
89
}
90
91
/**
test/main/HstoreTest.class.php
@@ -16,11 +16,15 @@ public function testRun()
16
$array = array(
17
'1' => 'qqer',
18
'f' => 'qs34$9&)_@+#qer',
19
+ 'null' => null
20
);
21
22
$test = Hstore::make($array);
23
$test2= Hstore::create($test->toString());
24
25
$this->assertEquals($test->toString(), $test2->toString());
26
+
27
+ $this->assertTrue($test->isExists('null'));
28
+ $this->assertFalse($test->isExists('notExist'));
29
30
0 commit comments