Skip to content

Commit f73b978

Browse files
authored
Merge pull request php-curl-class#691 from 3kbest/pr8.1
silence PHP 8.1 deprecations
2 parents 733319e + dce71a0 commit f73b978

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Curl/CaseInsensitiveArray.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function __construct(array $initial = null)
6464
*
6565
* @access public
6666
*/
67+
#[\ReturnTypeWillChange]
6768
public function offsetSet($offset, $value)
6869
{
6970
if ($offset === null) {
@@ -89,6 +90,7 @@ public function offsetSet($offset, $value)
8990
*
9091
* @access public
9192
*/
93+
#[\ReturnTypeWillChange]
9294
public function offsetExists($offset)
9395
{
9496
return (bool) array_key_exists(strtolower($offset), $this->data);
@@ -108,6 +110,7 @@ public function offsetExists($offset)
108110
*
109111
* @access public
110112
*/
113+
#[\ReturnTypeWillChange]
111114
public function offsetUnset($offset)
112115
{
113116
$offsetlower = strtolower($offset);
@@ -129,6 +132,7 @@ public function offsetUnset($offset)
129132
*
130133
* @access public
131134
*/
135+
#[\ReturnTypeWillChange]
132136
public function offsetGet($offset)
133137
{
134138
$offsetlower = strtolower($offset);
@@ -146,6 +150,7 @@ public function offsetGet($offset)
146150
*
147151
* @access public
148152
*/
153+
#[\ReturnTypeWillChange]
149154
public function count()
150155
{
151156
return (int) count($this->data);
@@ -162,6 +167,7 @@ public function count()
162167
*
163168
* @access public
164169
*/
170+
#[\ReturnTypeWillChange]
165171
public function current()
166172
{
167173
return current($this->data);
@@ -178,6 +184,7 @@ public function current()
178184
*
179185
* @access public
180186
*/
187+
#[\ReturnTypeWillChange]
181188
public function next()
182189
{
183190
next($this->data);
@@ -194,6 +201,7 @@ public function next()
194201
*
195202
* @access public
196203
*/
204+
#[\ReturnTypeWillChange]
197205
public function key()
198206
{
199207
$key = key($this->data);
@@ -209,6 +217,7 @@ public function key()
209217
*
210218
* @access public
211219
*/
220+
#[\ReturnTypeWillChange]
212221
public function valid()
213222
{
214223
return (bool) (key($this->data) !== null);
@@ -225,6 +234,7 @@ public function valid()
225234
*
226235
* @access public
227236
*/
237+
#[\ReturnTypeWillChange]
228238
public function rewind()
229239
{
230240
reset($this->data);

0 commit comments

Comments
 (0)