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

Breadcrumb

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

function ParserAbstract::checkClass

File

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

Class

ParserAbstract

Namespace

PhpParser

Code

protected function checkClass(Class_ $node, int $namePos) : void {
    $this->checkClassName($node->name, $namePos);
    if ($node->extends && $node->extends
        ->isSpecialClassName()) {
        $this->emitError(new Error(sprintf('Cannot use \'%s\' as class name as it is reserved', $node->extends), $node->extends
            ->getAttributes()));
    }
    $this->checkImplementedInterfaces($node->implements);
}

API Navigation

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