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

Breadcrumb

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

AbstractVariableSniff::$phpReservedVars

List of PHP Reserved variables.

Used by various naming convention sniffs.

Type: array

File

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

Class

AbstractVariableSniff

Namespace

PHP_CodeSniffer\Sniffs

Code

protected $phpReservedVars = [
    '_SERVER' => true,
    '_GET' => true,
    '_POST' => true,
    '_REQUEST' => true,
    '_SESSION' => true,
    '_ENV' => true,
    '_COOKIE' => true,
    '_FILES' => true,
    'GLOBALS' => true,
    'http_response_header' => true,
    'HTTP_RAW_POST_DATA' => true,
    'php_errormsg' => true,
];

API Navigation

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