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

Breadcrumb

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

function ParserAbstract::checkPropertyHookModifiers

File

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

Class

ParserAbstract

Namespace

PhpParser

Code

protected function checkPropertyHookModifiers(int $a, int $b, int $modifierPos) : void {
    try {
        Modifiers::verifyModifier($a, $b);
    } catch (Error $error) {
        $error->setAttributes($this->getAttributesAt($modifierPos));
        $this->emitError($error);
    }
    if ($b != Modifiers::FINAL) {
        $this->emitError(new Error('Cannot use the ' . Modifiers::toString($b) . ' modifier on a property hook', $this->getAttributesAt($modifierPos)));
    }
}

API Navigation

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