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