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

Breadcrumb

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

function StaticThisUsageSniff::__construct

Constructs the test with the tokens it wishes to listen for.

Overrides AbstractScopeSniff::__construct

File

vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/StaticThisUsageSniff.php, line 23

Class

StaticThisUsageSniff

Namespace

PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope

Code

public function __construct() {
    parent::__construct([
        T_CLASS,
        T_TRAIT,
        T_ENUM,
        T_ANON_CLASS,
    ], [
        T_FUNCTION,
    ]);
}

API Navigation

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