Skip to content

Commit c11b06d

Browse files
authored
Merge branch 'master' into create-pull-request/outdated
2 parents 369aeac + a91a932 commit c11b06d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Curl/CaseInsensitiveArray.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ public function next()
180180
public function key()
181181
{
182182
$key = key($this->data);
183-
return $this->keys[$key] ?? $key;
183+
if ($key === null) {
184+
return null;
185+
} else {
186+
return $this->keys[$key] ?? $key;
187+
}
184188
}
185189

186190
/**

0 commit comments

Comments
 (0)