Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | final class Cat extends Animal |
||
10 | { |
||
11 | public function populateRecord($row): void |
||
12 | { |
||
13 | parent::populateRecord($row); |
||
14 | |||
15 | $this->setDoes('meow'); |
||
16 | } |
||
17 | |||
18 | public function getException(): void |
||
19 | { |
||
20 | throw new Exception('no'); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * This is to test if __isset catches the error. |
||
25 | * |
||
26 | * @throw DivisionByZeroError |
||
27 | */ |
||
28 | public function getThrowable(): float|int |
||
31 | } |
||
32 | |||
33 | public function setNonExistingProperty(string $value): void |
||
35 | } |
||
36 | } |
||
37 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.