Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TokenIterator.php

function TokenIterator::throwError

*

Throws

ParserException

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

TokenIterator

Namespace

PHPStan\PhpDocParser\Parser

Code

private function throwError(int $expectedTokenType, ?string $expectedTokenValue = null) : void {
    throw new ParserException($this->currentTokenValue(), $this->currentTokenType(), $this->currentTokenOffset(), $expectedTokenType, $expectedTokenValue, $this->currentTokenLine());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal