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

Breadcrumb

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

DiscouragedFunctionsSniff::$forbiddenFunctions

Same name in this branch
  1. 11.1.x vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DiscouragedFunctionsSniff.php \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DiscouragedFunctionsSniff::forbiddenFunctions

A list of forbidden functions with their alternatives.

The value is NULL if no alternative exists, i.e., the function should just not be used.

cspell:disable

Type: array

Overrides ForbiddenFunctionsSniff::$forbiddenFunctions

File

vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Functions/DiscouragedFunctionsSniff.php, line 34

Class

DiscouragedFunctionsSniff
Discourage the use of debug functions.

Namespace

Drupal\Sniffs\Functions

Code

public $forbiddenFunctions = [
    // Devel module debugging functions.
'dargs' => null,
    'dcp' => null,
    'dd' => null,
    'ddebug_backtrace' => null,
    'ddm' => null,
    'dfb' => null,
    'dfbt' => null,
    'dpm' => null,
    'dpq' => null,
    'dpr' => null,
    'dprint_r' => null,
    'drupal_debug' => null,
    'dsm' => null,
    'dvm' => null,
    'dvr' => null,
    'kdevel_print_object' => null,
    'kint' => null,
    'ksm' => null,
    'kpr' => null,
    'kprint_r' => null,
    'sdpm' => null,
    // Functions which are not available on all
    // PHP builds.
'fnmatch' => null,
    // Functions which are a security risk.
'eval' => null,
];

API Navigation

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