Skip to content

Commit 0d54c07

Browse files
authored
Merge pull request #109 from greg0ire/phpstan-impure
2 parents 84a527d + ba2f368 commit 0d54c07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/AbstractLexer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ public function isNextTokenAny(array $types)
164164
*
165165
* @return bool
166166
*
167+
* @phpstan-impure
167168
* @psalm-assert-if-true !null $this->lookahead
168169
*/
169170
public function moveNext()
@@ -220,6 +221,8 @@ public function peek()
220221
*
221222
* @return mixed[]|null The next token or NULL if there are no more tokens ahead.
222223
* @psalm-return Token<T, V>|null
224+
*
225+
* @phpstan-impure
223226
*/
224227
public function glimpse()
225228
{

0 commit comments

Comments
 (0)