@@ -295,7 +295,7 @@ public function reset() {
295295 *
296296 * @return mixed
297297 */
298- public function current () {
298+ public function current () : mixed {
299299 return current ( $ this ->container );
300300 }
301301
@@ -306,7 +306,7 @@ public function current() {
306306 *
307307 * @return mixed
308308 */
309- public function key () {
309+ public function key () : mixed {
310310 return key ( $ this ->container );
311311 }
312312
@@ -317,7 +317,7 @@ public function key() {
317317 *
318318 * @return void
319319 */
320- public function next () {
320+ public function next () : void {
321321 next ( $ this ->container );
322322 }
323323
@@ -328,7 +328,7 @@ public function next() {
328328 *
329329 * @return void
330330 */
331- public function rewind () {
331+ public function rewind () : void {
332332 reset ( $ this ->container );
333333 }
334334
@@ -339,7 +339,7 @@ public function rewind() {
339339 *
340340 * @return bool
341341 */
342- public function valid () {
342+ public function valid () : bool {
343343 return $ this ->offsetExists ( $ this ->key () );
344344 }
345345 /*****************************************************************/
@@ -352,7 +352,7 @@ public function valid() {
352352 *
353353 * @return int
354354 */
355- public function count () {
355+ public function count () : int {
356356 return count ( $ this ->container );
357357 }
358358}
0 commit comments