WordPress / Requests

@@ -60,6 +60,7 @@
Loading
60 60
	 * @param string $key Item key
61 61
	 * @return boolean Does the item exist?
62 62
	 */
63 +
	#[ReturnTypeWillChange]
63 64
	public function offsetExists($key) {
64 65
		return isset($this->cookies[$key]);
65 66
	}
@@ -70,6 +71,7 @@
Loading
70 71
	 * @param string $key Item key
71 72
	 * @return string|null Item value (null if offsetExists is false)
72 73
	 */
74 +
	#[ReturnTypeWillChange]
73 75
	public function offsetGet($key) {
74 76
		if (!isset($this->cookies[$key])) {
75 77
			return null;
@@ -86,6 +88,7 @@
Loading
86 88
	 * @param string $key Item name
87 89
	 * @param string $value Item value
88 90
	 */
91 +
	#[ReturnTypeWillChange]
89 92
	public function offsetSet($key, $value) {
90 93
		if ($key === null) {
91 94
			throw new Requests_Exception('Object is a dictionary, not a list', 'invalidset');
@@ -99,6 +102,7 @@
Loading
99 102
	 *
100 103
	 * @param string $key
101 104
	 */
105 +
	#[ReturnTypeWillChange]
102 106
	public function offsetUnset($key) {
103 107
		unset($this->cookies[$key]);
104 108
	}
@@ -108,6 +112,7 @@
Loading
108 112
	 *
109 113
	 * @return ArrayIterator
110 114
	 */
115 +
	#[ReturnTypeWillChange]
111 116
	public function getIterator() {
112 117
		return new ArrayIterator($this->cookies);
113 118
	}

@@ -37,6 +37,7 @@
Loading
37 37
	 *
38 38
	 * @return string
39 39
	 */
40 +
	#[ReturnTypeWillChange]
40 41
	public function current() {
41 42
		$value = parent::current();
42 43
@@ -50,6 +51,7 @@
Loading
50 51
	/**
51 52
	 * @inheritdoc
52 53
	 */
54 +
	#[ReturnTypeWillChange]
53 55
	public function unserialize($serialized) {}
54 56
55 57
	/**
@@ -57,6 +59,7 @@
Loading
57 59
	 *
58 60
	 * @phpcs:disable PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
59 61
	 */
62 +
	#[ReturnTypeWillChange]
60 63
	public function __unserialize($serialized) {}
61 64
62 65
	public function __wakeup() {

@@ -37,6 +37,7 @@
Loading
37 37
	 * @param string $key Item key
38 38
	 * @return boolean Does the item exist?
39 39
	 */
40 +
	#[ReturnTypeWillChange]
40 41
	public function offsetExists($key) {
41 42
		$key = strtolower($key);
42 43
		return isset($this->data[$key]);
@@ -48,6 +49,7 @@
Loading
48 49
	 * @param string $key Item key
49 50
	 * @return string|null Item value (null if offsetExists is false)
50 51
	 */
52 +
	#[ReturnTypeWillChange]
51 53
	public function offsetGet($key) {
52 54
		$key = strtolower($key);
53 55
		if (!isset($this->data[$key])) {
@@ -65,6 +67,7 @@
Loading
65 67
	 * @param string $key Item name
66 68
	 * @param string $value Item value
67 69
	 */
70 +
	#[ReturnTypeWillChange]
68 71
	public function offsetSet($key, $value) {
69 72
		if ($key === null) {
70 73
			throw new Requests_Exception('Object is a dictionary, not a list', 'invalidset');
@@ -79,6 +82,7 @@
Loading
79 82
	 *
80 83
	 * @param string $key
81 84
	 */
85 +
	#[ReturnTypeWillChange]
82 86
	public function offsetUnset($key) {
83 87
		unset($this->data[strtolower($key)]);
84 88
	}
@@ -88,6 +92,7 @@
Loading
88 92
	 *
89 93
	 * @return ArrayIterator
90 94
	 */
95 +
	#[ReturnTypeWillChange]
91 96
	public function getIterator() {
92 97
		return new ArrayIterator($this->data);
93 98
	}
Files Complexity Coverage
library 792 93.10%
Project Totals (21 files) 792 93.10%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading