mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-28 03:00:55 +00:00
Merge branch 'master' into create-pull-request/outdated
This commit is contained in:
@@ -180,7 +180,11 @@ class CaseInsensitiveArray implements \ArrayAccess, \Countable, \Iterator
|
||||
public function key()
|
||||
{
|
||||
$key = key($this->data);
|
||||
return $this->keys[$key] ?? $key;
|
||||
if ($key === null) {
|
||||
return null;
|
||||
} else {
|
||||
return $this->keys[$key] ?? $key;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user