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

Breadcrumb

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

UselessOverridingMethodSniff::$validOOScopes

Object-Oriented scopes in which a call to parent::method() can exist.

Type: array Keys are the token constants, value is irrelevant.

File

vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UselessOverridingMethodSniff.php, line 36

Class

UselessOverridingMethodSniff

Namespace

PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis

Code

private $validOOScopes = [
    T_CLASS => true,
    T_ANON_CLASS => true,
    T_TRAIT => true,
];

API Navigation

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