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

Breadcrumb

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

function ParserAbstract::checkParam

File

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

Class

ParserAbstract

Namespace

PhpParser

Code

protected function checkParam(Param $node) : void {
    if ($node->variadic && null !== $node->default) {
        $this->emitError(new Error('Variadic parameter cannot have a default value', $node->default
            ->getAttributes()));
    }
}

API Navigation

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