| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 27 | public function getTrace(): array |
||
| 28 | { |
||
| 29 | $frames = $this->exception->getTrace(); |
||
| 30 | |||
| 31 | if (!isset($frames[0]['file']) || $frames[0]['file'] !== $this->exception->getFile()) { |
||
| 32 | array_unshift($frames, [ |
||
| 33 | 'file' => $this->exception->getFile(), |
||
| 34 | 'line' => $this->exception->getLine(), |
||
| 35 | ]); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $frames; |
||
| 39 | } |
||
| 57 |
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