Page MenuHomeWickedGov Phorge

DiscouragedFunctionsSniff.php
No OneTemporary

Size
1015 B
Referenced Files
None
Subscribers
None

DiscouragedFunctionsSniff.php

<?php
/**
* Discourages the use of debug functions.
*
* @author Greg Sherwood <gsherwood@squiz.net>
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/
namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff as GenericForbiddenFunctionsSniff;
class DiscouragedFunctionsSniff extends GenericForbiddenFunctionsSniff
{
/**
* 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 array<string, string|null>
*/
public $forbiddenFunctions = [
'error_log' => null,
'print_r' => null,
'var_dump' => null,
];
/**
* If true, an error will be thrown; otherwise a warning.
*
* @var boolean
*/
public $error = false;
}//end class

File Metadata

Mime Type
text/x-php
Expires
Mon, Nov 23, 10:39 (4 d, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ad/ea/f750e4a0f889823edbaa36ce3000
Default Alt Text
DiscouragedFunctionsSniff.php (1015 B)

Event Timeline