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
Namespace
PhpParserCode
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()));
}
}
}