Skip to content

Commit 3d0209d

Browse files
committed
php8.1 ReturnTypeWillChange
1 parent 5c865c3 commit 3d0209d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Curl/CaseInsensitiveArray.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Curl;
44

5+
use ReturnTypeWillChange;
6+
57
class CaseInsensitiveArray implements \ArrayAccess, \Countable, \Iterator
68
{
79

@@ -64,6 +66,7 @@ public function __construct(array $initial = null)
6466
*
6567
* @access public
6668
*/
69+
#[ReturnTypeWillChange]
6770
public function offsetSet($offset, $value)
6871
{
6972
if ($offset === null) {
@@ -89,6 +92,7 @@ public function offsetSet($offset, $value)
8992
*
9093
* @access public
9194
*/
95+
#[ReturnTypeWillChange]
9296
public function offsetExists($offset)
9397
{
9498
return (bool) array_key_exists(strtolower($offset), $this->data);
@@ -108,6 +112,7 @@ public function offsetExists($offset)
108112
*
109113
* @access public
110114
*/
115+
#[ReturnTypeWillChange]
111116
public function offsetUnset($offset)
112117
{
113118
$offsetlower = strtolower($offset);
@@ -129,6 +134,7 @@ public function offsetUnset($offset)
129134
*
130135
* @access public
131136
*/
137+
#[ReturnTypeWillChange]
132138
public function offsetGet($offset)
133139
{
134140
$offsetlower = strtolower($offset);
@@ -146,6 +152,7 @@ public function offsetGet($offset)
146152
*
147153
* @access public
148154
*/
155+
#[ReturnTypeWillChange]
149156
public function count()
150157
{
151158
return (int) count($this->data);
@@ -162,6 +169,7 @@ public function count()
162169
*
163170
* @access public
164171
*/
172+
#[ReturnTypeWillChange]
165173
public function current()
166174
{
167175
return current($this->data);
@@ -178,6 +186,7 @@ public function current()
178186
*
179187
* @access public
180188
*/
189+
#[ReturnTypeWillChange]
181190
public function next()
182191
{
183192
next($this->data);
@@ -194,6 +203,7 @@ public function next()
194203
*
195204
* @access public
196205
*/
206+
#[ReturnTypeWillChange]
197207
public function key()
198208
{
199209
$key = key($this->data);
@@ -209,6 +219,7 @@ public function key()
209219
*
210220
* @access public
211221
*/
222+
#[ReturnTypeWillChange]
212223
public function valid()
213224
{
214225
return (bool) (key($this->data) !== null);
@@ -225,6 +236,7 @@ public function valid()
225236
*
226237
* @access public
227238
*/
239+
#[ReturnTypeWillChange]
228240
public function rewind()
229241
{
230242
reset($this->data);

0 commit comments

Comments
 (0)