@@ -111,7 +111,8 @@ public function clear()
111111 *
112112 * @return bool
113113 */
114- public function offsetExists ($ key ): bool
114+ #[\ReturnTypeWillChange]
115+ public function offsetExists ($ key )
115116 {
116117 return $ this ->has ($ key );
117118 }
@@ -135,7 +136,8 @@ public function offsetGet($key)
135136 * @param string $key The data key
136137 * @param mixed $value The data value
137138 */
138- public function offsetSet ($ key , $ value ): void
139+ #[\ReturnTypeWillChange]
140+ public function offsetSet ($ key , $ value )
139141 {
140142 $ this ->set ($ key , $ value );
141143 }
@@ -145,7 +147,8 @@ public function offsetSet($key, $value): void
145147 *
146148 * @param string $key The data key
147149 */
148- public function offsetUnset ($ key ): void
150+ #[\ReturnTypeWillChange]
151+ public function offsetUnset ($ key )
149152 {
150153 $ this ->remove ($ key );
151154 }
@@ -155,7 +158,8 @@ public function offsetUnset($key): void
155158 *
156159 * @return int
157160 */
158- public function count (): int
161+ #[\ReturnTypeWillChange]
162+ public function count ()
159163 {
160164 return count ($ this ->data );
161165 }
@@ -165,7 +169,8 @@ public function count(): int
165169 *
166170 * @return ArrayIterator
167171 */
168- public function getIterator (): ArrayIterator
172+ #[\ReturnTypeWillChange]
173+ public function getIterator ()
169174 {
170175 return new ArrayIterator ($ this ->data );
171176 }
0 commit comments