7
7
8
8
namespace yii \elasticsearch ;
9
9
10
+ use ReturnTypeWillChange ;
10
11
use yii \base \BaseObject ;
11
12
12
13
/**
@@ -111,6 +112,7 @@ public function reset()
111
112
* Resets the iterator to the initial state.
112
113
* This method is required by the interface [[\Iterator]].
113
114
*/
115
+ #[ReturnTypeWillChange]
114
116
public function rewind ()
115
117
{
116
118
$ this ->reset ();
@@ -121,6 +123,7 @@ public function rewind()
121
123
* Moves the internal pointer to the next dataset.
122
124
* This method is required by the interface [[\Iterator]].
123
125
*/
126
+ #[ReturnTypeWillChange]
124
127
public function next ()
125
128
{
126
129
if ($ this ->_batch === null || !$ this ->each || $ this ->each && next ($ this ->_batch ) === false ) {
@@ -183,6 +186,7 @@ protected function fetchData()
183
186
* This method is required by the interface [[\Iterator]].
184
187
* @return int the index of the current row.
185
188
*/
189
+ #[ReturnTypeWillChange]
186
190
public function key ()
187
191
{
188
192
return $ this ->_key ;
@@ -193,6 +197,7 @@ public function key()
193
197
* This method is required by the interface [[\Iterator]].
194
198
* @return mixed the current dataset.
195
199
*/
200
+ #[ReturnTypeWillChange]
196
201
public function current ()
197
202
{
198
203
return $ this ->_value ;
@@ -203,6 +208,7 @@ public function current()
203
208
* This method is required by the interface [[\Iterator]].
204
209
* @return bool whether there is a valid dataset at the current position.
205
210
*/
211
+ #[ReturnTypeWillChange]
206
212
public function valid ()
207
213
{
208
214
return !empty ($ this ->_batch );
0 commit comments