1 | <?php |
||
25 | class PHPCompatibility_Sniffs_PHP_DeprecatedNewReferenceSniff extends PHPCompatibility_Sniff |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * If true, an error will be thrown; otherwise a warning. |
||
30 | * |
||
31 | * @var bool |
||
32 | */ |
||
33 | protected $error = false; |
||
34 | |||
35 | /** |
||
36 | * Returns an array of tokens this test wants to listen for. |
||
37 | * |
||
38 | * @return array |
||
39 | */ |
||
40 | public function register() |
||
45 | |||
46 | /** |
||
47 | * Processes this test, when one of its tokens is encountered. |
||
48 | * |
||
49 | * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. |
||
50 | * @param int $stackPtr The position of the current token in the |
||
51 | * stack passed in $tokens. |
||
52 | * |
||
53 | * @return void |
||
54 | */ |
||
55 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
71 | |||
72 | }//end class |
||
73 |