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

Breadcrumb

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

function AbstractVariableSniff::__construct

Constructs an AbstractVariableTest.

Overrides AbstractScopeSniff::__construct

File

vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php, line 50

Class

AbstractVariableSniff

Namespace

PHP_CodeSniffer\Sniffs

Code

public function __construct() {
    $scopes = Tokens::$ooScopeTokens;
    $listen = [
        T_VARIABLE,
        T_DOUBLE_QUOTED_STRING,
        T_HEREDOC,
    ];
    parent::__construct($scopes, $listen, true);
}

API Navigation

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