PHP Class Ecg\Sniffs\Security\DiscouragedFunctionSniff

Inheritance: extends Generic_Sniffs_PHP_ForbiddenFunctionsSnif\Generic_Sniffs_PHP_ForbiddenFunctionsSniff
Show file Open project: magento-ecg/coding-standard

Public Properties

Property Type Description
$error boolean If true, an error will be thrown; otherwise a warning.
$forbiddenFunctions The value is NULL if no alternative exists. IE, the function should just not be used.

Protected Properties

Property Type Description
$patternMatch boolean If true, forbidden functions will be considered regular expressions.

Property Details

$error public property

If true, an error will be thrown; otherwise a warning.
public bool $error
return boolean

$forbiddenFunctions public property

The value is NULL if no alternative exists. IE, the function should just not be used.
public $forbiddenFunctions

$patternMatch protected property

If true, forbidden functions will be considered regular expressions.
protected bool $patternMatch
return boolean