1 | <?php |
||
21 | class PHPCompatibility_Sniffs_PHP_ForbiddenNegativeBitshiftSniff extends PHPCompatibility_Sniff |
||
|
|||
22 | { |
||
23 | |||
24 | /** |
||
25 | * Returns an array of tokens this test wants to listen for. |
||
26 | * |
||
27 | * @return array |
||
28 | */ |
||
29 | public function register() |
||
34 | |||
35 | /** |
||
36 | * Processes this test, when one of its tokens is encountered. |
||
37 | * |
||
38 | * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. |
||
39 | * @param int $stackPtr The position of the current token |
||
40 | * in the stack passed in $tokens. |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
66 | |||
67 | }//end class |
||
68 |
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.