1 | <?php |
||
21 | class PHPCompatibility_Sniffs_PHP_NewGroupUseDeclarationsSniff extends PHPCompatibility_Sniff |
||
|
|||
22 | { |
||
23 | /** |
||
24 | * Returns an array of tokens this test wants to listen for. |
||
25 | * |
||
26 | * @return array |
||
27 | */ |
||
28 | 14 | public function register() |
|
36 | |||
37 | |||
38 | /** |
||
39 | * Processes this test, when one of its tokens is encountered. |
||
40 | * |
||
41 | * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. |
||
42 | * @param int $stackPtr The position of the current token in |
||
43 | * the stack passed in $tokens. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | 2 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
|
77 | }//end class |
||
78 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.