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

Breadcrumb

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

TokenPolyfill::IGNORABLE_TOKENS

@var array<int, bool> Tokens ignored by the PHP parser.

File

vendor/nikic/php-parser/lib/PhpParser/Internal/TokenPolyfill.php, line 29

Class

TokenPolyfill
This is a polyfill for the PhpToken class introduced in PHP 8.0. We do not actually polyfill PhpToken, because composer might end up picking a different polyfill implementation, which does not meet our requirements.

Namespace

PhpParser\Internal

Code

private const IGNORABLE_TOKENS = [
    \T_WHITESPACE => true,
    \T_COMMENT => true,
    \T_DOC_COMMENT => true,
    \T_OPEN_TAG => true,
];
RSS feed
Powered by Drupal