@@ -36,6 +36,7 @@ public function __construct(PHPUnit_Framework_TestSuite $testSuite)
3636 /**
3737 * Rewinds the Iterator to the first element.
3838 */
39+ #[\ReturnTypeWillChange]
3940 public function rewind ()
4041 {
4142 $ this ->position = 0 ;
@@ -46,6 +47,7 @@ public function rewind()
4647 *
4748 * @return bool
4849 */
50+ #[\ReturnTypeWillChange]
4951 public function valid ()
5052 {
5153 return $ this ->position < count ($ this ->tests );
@@ -56,6 +58,7 @@ public function valid()
5658 *
5759 * @return int
5860 */
61+ #[\ReturnTypeWillChange]
5962 public function key ()
6063 {
6164 return $ this ->position ;
@@ -66,6 +69,7 @@ public function key()
6669 *
6770 * @return PHPUnit_Framework_Test
6871 */
72+ #[\ReturnTypeWillChange]
6973 public function current ()
7074 {
7175 return $ this ->valid () ? $ this ->tests [$ this ->position ] : null ;
@@ -74,6 +78,7 @@ public function current()
7478 /**
7579 * Moves forward to next element.
7680 */
81+ #[\ReturnTypeWillChange]
7782 public function next ()
7883 {
7984 $ this ->position ++;
@@ -84,6 +89,7 @@ public function next()
8489 *
8590 * @return PHPUnit_Util_TestSuiteIterator
8691 */
92+ #[\ReturnTypeWillChange]
8793 public function getChildren ()
8894 {
8995 return new self (
@@ -96,6 +102,7 @@ public function getChildren()
96102 *
97103 * @return bool
98104 */
105+ #[\ReturnTypeWillChange]
99106 public function hasChildren ()
100107 {
101108 return $ this ->tests [$ this ->position ] instanceof PHPUnit_Framework_TestSuite;
0 commit comments