--- a/wp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php Wed Sep 21 18:19:35 2022 +0200
@@ -46,7 +46,7 @@
* Get the value for the item
*
* @param string $key Item key
- * @return string Item value
+ * @return string|null Item value (null if offsetExists is false)
*/
public function offsetGet($key) {
$key = strtolower($key);
@@ -70,7 +70,7 @@
throw new Requests_Exception('Object is a dictionary, not a list', 'invalidset');
}
- $key = strtolower($key);
+ $key = strtolower($key);
$this->data[$key] = $value;
}