1 | <?php |
||
27 | class ArgumentFunctionsReportCurrentValueSniff extends Sniff |
||
28 | { |
||
29 | /** |
||
30 | * A list of functions that, when called, have a different behaviour in PHP 7 when dealing with parameters of the function they're called in. |
||
31 | * @var array(string) |
||
32 | */ |
||
33 | |||
34 | protected $changedFunctions = array( |
||
35 | 'func_get_arg', |
||
36 | 'func_get_args', |
||
37 | 'debug_backtrace' |
||
38 | ); |
||
39 | |||
40 | /** |
||
41 | * Returns an array of tokens this test wants to listen for. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public function register() |
||
50 | |||
51 | /** |
||
52 | * Processes this test, when one of its tokens is encountered. |
||
53 | * |
||
54 | * @param \PHP_CodeSniffer_File $phpcsFile The file being scanned. |
||
55 | * @param int $stackPtr The position of the current token |
||
56 | * in the stack passed in $tokens. |
||
57 | * |
||
58 | * @return void |
||
59 | */ |
||
60 | public function process(\PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
99 | |||
100 | |||
101 | }//end class |
||
102 |