diff --git a/composer.json b/composer.json index e38deb8..5864c68 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "jakub-onderka/php-parallel-lint": "^0.9.2", "phing/phing": "^2.16.0", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12.20", + "phpstan/phpstan": "^0.12.23", "phpstan/phpstan-strict-rules": "^0.12", "phpunit/phpunit": "^6.3", "slevomat/coding-standard": "^4.7.2", diff --git a/src/Parser/TokenIterator.php b/src/Parser/TokenIterator.php index 382859f..05fe5d7 100644 --- a/src/Parser/TokenIterator.php +++ b/src/Parser/TokenIterator.php @@ -77,7 +77,7 @@ class TokenIterator public function consumeTokenType(int $tokenType): void { if ($this->tokens[$this->index][Lexer::TYPE_OFFSET] !== $tokenType) { - $this->throwError($tokenType, null); + $this->throwError($tokenType); } $this->index++;