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

Breadcrumb

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

function ParserAbstract::checkUseUse

File

vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php, line 1151

Class

ParserAbstract

Namespace

PhpParser

Code

protected function checkUseUse(UseItem $node, int $namePos) : void {
    if ($node->alias && $node->alias
        ->isSpecialClassName()) {
        $this->emitError(new Error(sprintf('Cannot use %s as %s because \'%2$s\' is a special class name', $node->name, $node->alias), $this->getAttributesAt($namePos)));
    }
}

API Navigation

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