PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
← All changes | includes/libraries/wp-session/class-recursive-arrayaccess.php +7 -5 1.7.0.12 → 1.8.13 View file →
@@ -15,9 +15,9 @@
15 15 *
16 16 * @package WordPress
17 17 * @since 3.7.0
18 18 */
19 -class Recursive_ArrayAccess implements ArrayAccess, Iterator, Countable {
19 +class Recursive_ArrayAccess implements ArrayAccess, Iterator, Countable { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- This is a bundled library class. Changing it would break existing functionality.
20 20 /**
21 21 * Internal data collection.
22 22 *
23 23 * @var array
@@ -109,9 +109,10 @@
109 109 * @param mixed $value The value to set.
110 110 *
111 111 * @return void
112 112 */
113 - public function offsetSet( $offset, $data ) : void {
113 + #[\ReturnTypeWillChange]
114 + public function offsetSet( $offset, $data ) {
114 115 if ( is_array( $data ) ) {
115 116 $data = new self( $data );
116 117 }
117 118 if ( $offset === null ) { // don't forget this!
@@ -131,9 +132,10 @@
131 132 * @param mixed $offset The offset to unset.
132 133 *
133 134 * @return void
134 135 */
135 - public function offsetUnset( $offset ) : void {
136 + #[\ReturnTypeWillChange]
137 + public function offsetUnset( $offset ) {
136 138 unset( $this->container[ $offset ] );
137 139
138 140 $this->dirty = true;
139 141 }
@@ -186,9 +188,9 @@
186 188 *
187 189 * @return void
188 190 */
189 191 #[\ReturnTypeWillChange]
190 - public function rewind() {
192 + public function rewind() {
191 193 reset( $this->container );
192 194 }
193 195
194 196 /**
@@ -198,9 +200,9 @@
198 200 *
199 201 * @return bool
200 202 */
201 203 #[\ReturnTypeWillChange]
202 - public function valid() {
204 + public function valid() {
203 205 return $this->offsetExists( $this->key() );
204 206 }
205 207
206 208 /*****************************************************************/