function TokenIterator::throwError
*
Throws
2 calls to TokenIterator::throwError()
- TokenIterator::consumeTokenType in vendor/
phpstan/ phpdoc-parser/ src/ Parser/ TokenIterator.php - *
- TokenIterator::consumeTokenValue in vendor/
phpstan/ phpdoc-parser/ src/ Parser/ TokenIterator.php - *
File
-
vendor/
phpstan/ phpdoc-parser/ src/ Parser/ TokenIterator.php, line 306
Class
Namespace
PHPStan\PhpDocParser\ParserCode
private function throwError(int $expectedTokenType, ?string $expectedTokenValue = null) : void {
throw new ParserException($this->currentTokenValue(), $this->currentTokenType(), $this->currentTokenOffset(), $expectedTokenType, $expectedTokenValue, $this->currentTokenLine());
}