File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ public function __construct(
3333 /**
3434 * {@inheritdoc}
3535 */
36- public function current ()
36+ public function current (): array
3737 {
3838 return json_decode ($ this ->line , true );
3939 }
4040
4141 /**
4242 * {@inheritdoc}
4343 */
44- public function next ()
44+ public function next (): void
4545 {
4646 $ this ->line = $ this ->streamReader ->getNextLine ($ this ->bodyStream );
4747 $ this ->lineNumber ++;
@@ -50,23 +50,23 @@ public function next()
5050 /**
5151 * {@inheritdoc}
5252 */
53- public function key ()
53+ public function key (): int
5454 {
5555 return $ this ->lineNumber ;
5656 }
5757
5858 /**
5959 * {@inheritdoc}
6060 */
61- public function valid ()
61+ public function valid (): bool
6262 {
6363 return null !== $ this ->line ;
6464 }
6565
6666 /**
6767 * {@inheritdoc}
6868 */
69- public function rewind ()
69+ public function rewind (): void
7070 {
7171 $ this ->bodyStream ->rewind ();
7272 $ this ->lineNumber = 1 ;
You can’t perform that action at this time.
0 commit comments