@@ -78,7 +78,7 @@ public function isCurrentTokenType(int $tokenType): bool
7878 /**
7979 * @throws ParserException
8080 */
81- public function consumeTokenType (int $ tokenType ): void
81+ public function consumeTokenType (int $ tokenType )
8282 {
8383 if ($ this ->tokens [$ this ->index ][Lexer::TYPE_OFFSET ] !== $ tokenType ) {
8484 $ this ->throwError ($ tokenType );
@@ -140,7 +140,7 @@ public function joinUntil(int ...$tokenType): string
140140 }
141141
142142
143- public function next (): void
143+ public function next ()
144144 {
145145 $ this ->index ++;
146146
@@ -150,19 +150,19 @@ public function next(): void
150150 }
151151
152152
153- public function pushSavePoint (): void
153+ public function pushSavePoint ()
154154 {
155155 $ this ->savePoints [] = $ this ->index ;
156156 }
157157
158158
159- public function dropSavePoint (): void
159+ public function dropSavePoint ()
160160 {
161161 array_pop ($ this ->savePoints );
162162 }
163163
164164
165- public function rollback (): void
165+ public function rollback ()
166166 {
167167 $ this ->index = array_pop ($ this ->savePoints );
168168 }
@@ -171,7 +171,7 @@ public function rollback(): void
171171 /**
172172 * @throws ParserException
173173 */
174- private function throwError (int $ expectedTokenType ): void
174+ private function throwError (int $ expectedTokenType )
175175 {
176176 throw new ParserException (sprintf (
177177 'Unexpected token \'%s \', expected %s at offset %d ' ,
0 commit comments