@@ -296,6 +296,7 @@ public function isCountryCodeInEU(string $code) : bool
296
296
* @return mixed Can return any type.
297
297
* @since 5.0.0
298
298
*/
299
+ #[\ReturnTypeWillChange]
299
300
public function current ()
300
301
{
301
302
return current ($ this ->data );
@@ -307,6 +308,7 @@ public function current()
307
308
* @return void Any returned value is ignored.
308
309
* @since 5.0.0
309
310
*/
311
+ #[\ReturnTypeWillChange]
310
312
public function next ()
311
313
{
312
314
next ($ this ->data );
@@ -318,6 +320,7 @@ public function next()
318
320
* @return mixed scalar on success, or null on failure.
319
321
* @since 5.0.0
320
322
*/
323
+ #[\ReturnTypeWillChange]
321
324
public function key ()
322
325
{
323
326
return key ($ this ->data );
@@ -330,6 +333,7 @@ public function key()
330
333
* Returns true on success or false on failure.
331
334
* @since 5.0.0
332
335
*/
336
+ #[\ReturnTypeWillChange]
333
337
public function valid ()
334
338
{
335
339
return key ($ this ->data ) !== null ;
@@ -341,6 +345,7 @@ public function valid()
341
345
* @return void Any returned value is ignored.
342
346
* @since 5.0.0
343
347
*/
348
+ #[\ReturnTypeWillChange]
344
349
public function rewind ()
345
350
{
346
351
reset ($ this ->data );
@@ -350,6 +355,7 @@ public function rewind()
350
355
* @param string $countryCode
351
356
* @return bool
352
357
*/
358
+ #[\ReturnTypeWillChange]
353
359
public function offsetExists ($ countryCode )
354
360
{
355
361
return isset ($ this ->data [$ countryCode ]);
@@ -360,6 +366,7 @@ public function offsetExists($countryCode)
360
366
* @return string
361
367
* @throws \Exception
362
368
*/
369
+ #[\ReturnTypeWillChange]
363
370
public function offsetGet ($ countryCode )
364
371
{
365
372
if (!$ this ->offsetExists ($ countryCode )) {
@@ -375,6 +382,7 @@ public function offsetGet($countryCode)
375
382
* @return string
376
383
* @throws \Exception
377
384
*/
385
+ #[\ReturnTypeWillChange]
378
386
public function offsetSet ($ countryCode , $ name )
379
387
{
380
388
throw new Exception ('Invalid use of Countries class ' );
@@ -385,6 +393,7 @@ public function offsetSet($countryCode, $name)
385
393
* @return string
386
394
* @throws \Exception
387
395
*/
396
+ #[\ReturnTypeWillChange]
388
397
public function offsetUnset ($ countryCode )
389
398
{
390
399
throw new Exception ('Invalid use of Countries class ' );
0 commit comments