1 | <?php |
||
21 | class PHPCompatibility_Sniffs_PHP_LateStaticBindingSniff extends PHPCompatibility_Sniff |
||
|
|||
22 | { |
||
23 | /** |
||
24 | * Returns an array of tokens this test wants to listen for. |
||
25 | * |
||
26 | * @return array |
||
27 | */ |
||
28 | 7 | public function register() |
|
33 | |||
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 in the |
||
40 | * stack passed in $tokens. |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | 2 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
|
75 | |||
76 | |||
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.