| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
| 53 | { |
||
| 54 | // Don't do anything if the warning has already been thrown once. |
||
| 55 | if ($this->thrown === true) { |
||
| 56 | return ($phpcsFile->numTokens + 1); |
||
| 57 | } |
||
| 58 | |||
| 59 | $phpcsFile->addWarning( |
||
| 60 | "IMPORTANT NOTICE:\nPlease be advised that the upcoming 7.1.6 version of the PHPCompatibility standard will contain a breaking change.\n\nPlease read the changelog carefully when you upgrade and follow the instructions contained therein to retain uninterupted service.\n\nThank you for using PHPCompatibility!", |
||
| 61 | 0, |
||
| 62 | 'BreakingChange' |
||
| 63 | ); |
||
| 64 | |||
| 65 | $this->thrown = true; |
||
| 66 | } |
||
| 67 | } |
||
| 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.