| Total Complexity | 6 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | class Stacktrace |
||
| 8 | { |
||
| 9 | use PathTrait; |
||
|
|
|||
| 10 | |||
| 11 | /** |
||
| 12 | * @var Throwable |
||
| 13 | */ |
||
| 14 | protected $exception; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param Throwable |
||
| 18 | */ |
||
| 19 | public function __construct(Throwable $exception) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 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 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | public function getFrames(): array |
||
| 55 | } |
||
| 56 | } |
||
| 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