2
2
3
3
namespace Curl ;
4
4
5
+ use ReturnTypeWillChange ;
6
+
5
7
class CaseInsensitiveArray implements \ArrayAccess, \Countable, \Iterator
6
8
{
7
9
@@ -64,6 +66,7 @@ public function __construct(array $initial = null)
64
66
*
65
67
* @access public
66
68
*/
69
+ #[ReturnTypeWillChange]
67
70
public function offsetSet ($ offset , $ value )
68
71
{
69
72
if ($ offset === null ) {
@@ -89,6 +92,7 @@ public function offsetSet($offset, $value)
89
92
*
90
93
* @access public
91
94
*/
95
+ #[ReturnTypeWillChange]
92
96
public function offsetExists ($ offset )
93
97
{
94
98
return (bool ) array_key_exists (strtolower ($ offset ), $ this ->data );
@@ -108,6 +112,7 @@ public function offsetExists($offset)
108
112
*
109
113
* @access public
110
114
*/
115
+ #[ReturnTypeWillChange]
111
116
public function offsetUnset ($ offset )
112
117
{
113
118
$ offsetlower = strtolower ($ offset );
@@ -129,6 +134,7 @@ public function offsetUnset($offset)
129
134
*
130
135
* @access public
131
136
*/
137
+ #[ReturnTypeWillChange]
132
138
public function offsetGet ($ offset )
133
139
{
134
140
$ offsetlower = strtolower ($ offset );
@@ -146,6 +152,7 @@ public function offsetGet($offset)
146
152
*
147
153
* @access public
148
154
*/
155
+ #[ReturnTypeWillChange]
149
156
public function count ()
150
157
{
151
158
return (int ) count ($ this ->data );
@@ -162,6 +169,7 @@ public function count()
162
169
*
163
170
* @access public
164
171
*/
172
+ #[ReturnTypeWillChange]
165
173
public function current ()
166
174
{
167
175
return current ($ this ->data );
@@ -178,6 +186,7 @@ public function current()
178
186
*
179
187
* @access public
180
188
*/
189
+ #[ReturnTypeWillChange]
181
190
public function next ()
182
191
{
183
192
next ($ this ->data );
@@ -194,6 +203,7 @@ public function next()
194
203
*
195
204
* @access public
196
205
*/
206
+ #[ReturnTypeWillChange]
197
207
public function key ()
198
208
{
199
209
$ key = key ($ this ->data );
@@ -209,6 +219,7 @@ public function key()
209
219
*
210
220
* @access public
211
221
*/
222
+ #[ReturnTypeWillChange]
212
223
public function valid ()
213
224
{
214
225
return (bool ) (key ($ this ->data ) !== null );
@@ -225,6 +236,7 @@ public function valid()
225
236
*
226
237
* @access public
227
238
*/
239
+ #[ReturnTypeWillChange]
228
240
public function rewind ()
229
241
{
230
242
reset ($ this ->data );
0 commit comments