Skip to content

Commit

Permalink
Merge pull request doctrine#109 from greg0ire/phpstan-impure
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire authored Jul 5, 2023
2 parents 84a527d + ba2f368 commit 0d54c07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/AbstractLexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public function isNextTokenAny(array $types)
*
* @return bool
*
* @phpstan-impure
* @psalm-assert-if-true !null $this->lookahead
*/
public function moveNext()
Expand Down Expand Up @@ -220,6 +221,8 @@ public function peek()
*
* @return mixed[]|null The next token or NULL if there are no more tokens ahead.
* @psalm-return Token<T, V>|null
*
* @phpstan-impure
*/
public function glimpse()
{
Expand Down

0 comments on commit 0d54c07

Please sign in to comment.