1 | <?php |
||
17 | class PHPCompatibility_Sniffs_PHP_LateStaticBindingSniff extends PHPCompatibility_Sniff |
||
|
|||
18 | { |
||
19 | /** |
||
20 | * Returns an array of tokens this test wants to listen for. |
||
21 | * |
||
22 | * @return array |
||
23 | */ |
||
24 | public function register() |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Processes this test, when one of its tokens is encountered. |
||
33 | * |
||
34 | * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. |
||
35 | * @param int $stackPtr The position of the current token in the |
||
36 | * stack passed in $tokens. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
65 | |||
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.