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

Breadcrumb

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

PHP::$tstringContexts

Contexts in which keywords should always be tokenized as T_STRING.

Type: array

File

vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php, line 476

Class

PHP

Namespace

PHP_CodeSniffer\Tokenizers

Code

protected $tstringContexts = [
    T_OBJECT_OPERATOR => true,
    T_NULLSAFE_OBJECT_OPERATOR => true,
    T_FUNCTION => true,
    T_CLASS => true,
    T_INTERFACE => true,
    T_TRAIT => true,
    T_ENUM => true,
    T_ENUM_CASE => true,
    T_EXTENDS => true,
    T_IMPLEMENTS => true,
    T_ATTRIBUTE => true,
    T_NEW => true,
    T_CONST => true,
    T_NS_SEPARATOR => true,
    T_USE => true,
    T_NAMESPACE => true,
    T_PAAMAYIM_NEKUDOTAYIM => true,
];
RSS feed
Powered by Drupal