Skip to content

Commit 9900cfd

Browse files
committed
Handle null type better
Closes #559
1 parent 006b3c2 commit 9900cfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Elasticsearch/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ public function extractArgument(&$params, $arg)
14571457
$params = (array) $params;
14581458
}
14591459

1460-
if (isset($params[$arg]) === true) {
1460+
if (array_key_exists($arg, $params) === true) {
14611461
$val = $params[$arg];
14621462
unset($params[$arg]);
14631463

src/Elasticsearch/Namespaces/AbstractNamespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function extractArgument(&$params, $arg)
4646
$params = (array) $params;
4747
}
4848

49-
if (isset($params[$arg]) === true) {
49+
if (array_key_exists($arg, $params) === true) {
5050
$val = $params[$arg];
5151
unset($params[$arg]);
5252

0 commit comments

Comments
 (0)