Total Complexity | 4 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | final class ConsoleException extends Exception implements ConsoleExceptionContract |
||
20 | { |
||
21 | /** |
||
22 | * The exit code. |
||
23 | * |
||
24 | * @var int |
||
25 | */ |
||
26 | private $exitCode; |
||
27 | |||
28 | /** |
||
29 | * The headers. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | private $headers; |
||
34 | |||
35 | /** |
||
36 | * ConsoleException constructor. |
||
37 | * |
||
38 | * @param int $exitCode |
||
39 | * @param string|null $message |
||
40 | * @param \Exception|null $previous |
||
41 | * @param array $headers |
||
42 | * @param int code |
||
|
|||
43 | */ |
||
44 | 3 | public function __construct( |
|
45 | int $exitCode, |
||
46 | string $message = null, |
||
47 | array $headers = [], |
||
48 | \Exception $previous = null, |
||
49 | ?int $code = 0 |
||
50 | ) { |
||
51 | 3 | $this->exitCode = $exitCode; |
|
52 | 3 | $this->headers = $headers; |
|
53 | |||
54 | 3 | parent::__construct($message, $code, $previous); |
|
55 | 3 | } |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 2 | public function getExitCode(): int |
|
61 | { |
||
62 | 2 | return $this->exitCode; |
|
63 | } |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | 2 | public function getHeaders(): array |
|
71 | } |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | 1 | public function setHeaders(array $headers): ConsoleExceptionContract |
|
83 |
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