Skip to content

Commit

Permalink
Merge pull request #103 from greg0ire/fix-assertions
Browse files Browse the repository at this point in the history
Use correct syntax for assertions
  • Loading branch information
greg0ire authored Dec 13, 2022
2 parents 49e0c1c + 7788860 commit c7b693a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/AbstractLexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function getInputUntilPosition($position)
*
* @return bool
*
* @psalm-assert-if-true !null $this->lookahead
* @psalm-assert-if-true !=null $this->lookahead
*/
public function isNextToken($type)
{
Expand All @@ -162,7 +162,7 @@ public function isNextToken($type)
*
* @return bool
*
* @psalm-assert-if-true !null $this->lookahead
* @psalm-assert-if-true !=null $this->lookahead
*/
public function isNextTokenAny(array $types)
{
Expand All @@ -175,7 +175,6 @@ public function isNextTokenAny(array $types)
* @return bool
*
* @psalm-assert-if-true !null $this->lookahead
* @psalm-assert-if-false null $this->lookahead
*/
public function moveNext()
{
Expand Down

0 comments on commit c7b693a

Please sign in to comment.