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

Breadcrumb

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

function ParserAbstract::checkImplementedInterfaces

Parameters

Name[] $interfaces :

3 calls to ParserAbstract::checkImplementedInterfaces()
ParserAbstract::checkClass in vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php
ParserAbstract::checkEnum in vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php
ParserAbstract::checkInterface in vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php

File

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

Class

ParserAbstract

Namespace

PhpParser

Code

private function checkImplementedInterfaces(array $interfaces) : void {
    foreach ($interfaces as $interface) {
        if ($interface->isSpecialClassName()) {
            $this->emitError(new Error(sprintf('Cannot use \'%s\' as interface name as it is reserved', $interface), $interface->getAttributes()));
        }
    }
}

API Navigation

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