| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | public function process(\PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
| 46 | { |
||
| 47 | if ($this->supportsAbove('7.2') === false) { |
||
| 48 | return; |
||
| 49 | } |
||
| 50 | |||
| 51 | $funcName = $phpcsFile->getDeclarationName($stackPtr); |
||
| 52 | |||
| 53 | if (strtolower($funcName) !== '__autoload') { |
||
| 54 | return; |
||
| 55 | } |
||
| 56 | |||
| 57 | $this->addMessage($phpcsFile, 'Use of __autoload() function is deprecated since PHP 7.2', $stackPtr, false); |
||
| 58 | }//end process() |
||
| 59 | |||
| 61 |