Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/wp-includes/Requests/Cookie/Jar.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function normalizeCookie($cookie, $key = null) {
* @param string $key Item key
* @return boolean Does the item exist?
*/
#[ReturnTypeWillChange]
public function offsetExists($key) {
return isset($this->cookies[$key]);
}
Expand All @@ -70,6 +71,7 @@ public function offsetExists($key) {
* @param string $key Item key
* @return string|null Item value (null if offsetExists is false)
*/
#[ReturnTypeWillChange]
public function offsetGet($key) {
if (!isset($this->cookies[$key])) {
return null;
Expand All @@ -86,6 +88,7 @@ public function offsetGet($key) {
* @param string $key Item name
* @param string $value Item value
*/
#[ReturnTypeWillChange]
public function offsetSet($key, $value) {
if ($key === null) {
throw new Requests_Exception('Object is a dictionary, not a list', 'invalidset');
Expand All @@ -99,6 +102,7 @@ public function offsetSet($key, $value) {
*
* @param string $key
*/
#[ReturnTypeWillChange]
public function offsetUnset($key) {
unset($this->cookies[$key]);
}
Expand All @@ -108,6 +112,7 @@ public function offsetUnset($key) {
*
* @return ArrayIterator
*/
#[ReturnTypeWillChange]
public function getIterator() {
return new ArrayIterator($this->cookies);
}
Expand Down