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