@@ -15,7 +15,7 @@ class EmptyInnerResultIterator implements Iterator, InnerResultIteratorInterface
1515 * @return mixed Can return any type.
1616 * @since 5.0.0
1717 */
18- public function current ()
18+ public function current (): mixed
1919 {
2020 return null ;
2121 }
@@ -26,7 +26,7 @@ public function current()
2626 * @return void Any returned value is ignored.
2727 * @since 5.0.0
2828 */
29- public function next ()
29+ public function next (): void
3030 {
3131 }
3232
@@ -36,7 +36,7 @@ public function next()
3636 * @return mixed scalar on success, or null on failure.
3737 * @since 5.0.0
3838 */
39- public function key ()
39+ public function key (): mixed
4040 {
4141 return null ;
4242 }
@@ -48,7 +48,7 @@ public function key()
4848 * Returns true on success or false on failure.
4949 * @since 5.0.0
5050 */
51- public function valid ()
51+ public function valid (): bool
5252 {
5353 return false ;
5454 }
@@ -59,7 +59,7 @@ public function valid()
5959 * @return void Any returned value is ignored.
6060 * @since 5.0.0
6161 */
62- public function rewind ()
62+ public function rewind (): void
6363 {
6464 }
6565
@@ -75,7 +75,7 @@ public function rewind()
7575 * The return value will be casted to boolean if non-boolean was returned.
7676 * @since 5.0.0
7777 */
78- public function offsetExists ($ offset )
78+ public function offsetExists ($ offset ): bool
7979 {
8080 return false ;
8181 }
@@ -89,7 +89,7 @@ public function offsetExists($offset)
8989 * @return mixed Can return all value types.
9090 * @since 5.0.0
9191 */
92- public function offsetGet ($ offset )
92+ public function offsetGet ($ offset ): mixed
9393 {
9494 throw new TDBMInvalidOffsetException ('Offset " ' .$ offset .'" does not exist in result set. ' );
9595 }
@@ -134,7 +134,7 @@ public function offsetUnset($offset): void
134134 * The return value is cast to an integer.
135135 * @since 5.1.0
136136 */
137- public function count ()
137+ public function count (): int
138138 {
139139 return 0 ;
140140 }
0 commit comments