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

Breadcrumb

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

function ParserAbstract::postprocessList

File

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

Class

ParserAbstract

Namespace

PhpParser

Code

protected function postprocessList(Expr\List_ $node) : void {
    foreach ($node->items as $i => $item) {
        if ($item->value instanceof Expr\Error) {
            // We used Error as a placeholder for empty elements, which are legal for destructuring.
            $node->items[$i] = null;
        }
    }
}

API Navigation

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