Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | final class UnresolvableDomainIdsCollectionException extends UnresolvableDomainIdsException |
||
8 | { |
||
9 | /** |
||
10 | * @var list<UnresolvableDomainIdsException> |
||
|
|||
11 | */ |
||
12 | private array $exceptions = []; |
||
13 | |||
14 | /** |
||
15 | * @param class-string $eventClassName |
||
16 | */ |
||
17 | 2 | public static function withExceptions( |
|
18 | string $eventClassName, |
||
19 | string $message, |
||
20 | UnresolvableDomainIdsException ...$exceptions, |
||
21 | ): self { |
||
22 | 2 | $exception = new self(sprintf('Unresolvable domainIds for event %s: %s', $eventClassName, $message)); |
|
23 | 2 | $exception->exceptions = array_values($exceptions); |
|
24 | |||
25 | 2 | return $exception; |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return list<UnresolvableDomainIdsException> |
||
30 | */ |
||
31 | 1 | public function getExceptions(): array |
|
34 | } |
||
35 | } |
||
36 |
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