Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
47 | protected function handleToken($token) |
||
48 | { |
||
49 | if ($token['type'] !== 'T_EXTENDS') { |
||
50 | return; |
||
51 | } |
||
52 | $warning = "Class extends another class - consider composition over inheritance."; |
||
53 | $this->phpcsFile->addWarning($warning, $token['line'], __CLASS__); |
||
54 | } |
||
56 |