File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ private function initialize()
123
123
* Returns the current number of step in the encoder.
124
124
* @return int|null The current step number as integer or null if the current state is not valid
125
125
*/
126
+ #[\ReturnTypeWillChange]
126
127
public function key ()
127
128
{
128
129
$ this ->initialize ();
@@ -134,6 +135,7 @@ public function key()
134
135
* Tells if the encoder has a valid current state.
135
136
* @return bool True if the iterator has a valid state, false if not
136
137
*/
138
+ #[\ReturnTypeWillChange]
137
139
public function valid ()
138
140
{
139
141
$ this ->initialize ();
@@ -145,11 +147,13 @@ public function valid()
145
147
* Returns the current value or state from the encoder.
146
148
* @return mixed The current value or state from the encoder
147
149
*/
150
+ #[\ReturnTypeWillChange]
148
151
abstract public function current ();
149
152
150
153
/**
151
154
* Returns the JSON encoding to the beginning.
152
155
*/
156
+ #[\ReturnTypeWillChange]
153
157
public function rewind ()
154
158
{
155
159
if ($ this ->step === 0 ) {
@@ -172,6 +176,7 @@ public function rewind()
172
176
/**
173
177
* Iterates the next token or tokens to the output stream.
174
178
*/
179
+ #[\ReturnTypeWillChange]
175
180
public function next ()
176
181
{
177
182
$ this ->initialize ();
You can’t perform that action at this time.
0 commit comments