Class: DiscouragedFunctionsSniff
Source Location: /PHP_CodeSniffer-3.1.0/src/Standards/Squiz/Sniffs/PHP/DiscouragedFunctionsSniff.php
GenericForbiddenFunctionsSniff
|
--DiscouragedFunctionsSniff
Discourages the use of debug functions.
Author(s):
Copyright:
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
Inherited Variables
Inherited Methods
Class Details
[line
14]
Discourages the use of debug functions.
Class Variables
$error = false
[line 36]
If true, an error will be thrown; otherwise a warning.
$forbiddenFunctions = array(
'error_log' => null,
'print_r' => null,
'var_dump' => null,
)
[line 25]
A list of forbidden functions with their alternatives.
The value is NULL if no alternative exists. IE, the function should just not be used.
- Var: string|null>
- Access: public
Documentation generated on 2019年3月11日 13:53:27 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.