File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ public function getDataAsJsonString(int $option = 0, int $depth = 512): string
336336
* Implements \JsonSerializable interface
337337
* @return mixed
338338
*/
339+
#[\ReturnTypeWillChange] // PHP 8.1 compatibility
339340
public function jsonSerialize()
340341
{
341342
return $this->get();
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function __construct(...$args)
4949
/**
5050
* @return mixed
5151
*/
52+
#[\ReturnTypeWillChange] // PHP 8.1 compatibility
5253
public function current()
5354
{
5455
return $this->array[$this->position];
@@ -107,7 +108,7 @@ public function count(): int
107108
* @param mixed $offset
108109
* @return mixed
109110
*/
110-
#[\ReturnTypeWillChange] // PHP 8 compatibility
111+
#[\ReturnTypeWillChange] // PHP 8.1 compatibility
111112
public function offsetGet($offset)
112113
{
113114
return $this->array[$offset] ?? null;

0 commit comments

Comments
 (0)