| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Cat extends Animal |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param self $record |
||
| 14 | * @param array $row |
||
| 15 | */ |
||
| 16 | public static function populateRecord($record, $row): void |
||
| 17 | { |
||
| 18 | parent::populateRecord($record, $row); |
||
| 19 | |||
| 20 | $record->does = 'meow'; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * This is to test if __isset catches the exception. |
||
| 25 | * @throw DivisionByZeroError |
||
| 26 | * |
||
| 27 | * @throws Exception |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function getException(): void |
||
| 32 | { |
||
| 33 | throw new Exception('no'); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * This is to test if __isset catches the error. |
||
| 38 | * |
||
| 39 | * @throw DivisionByZeroError |
||
| 40 | * |
||
| 41 | * @return float|int |
||
| 42 | */ |
||
| 43 | public function getThrowable() |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths