Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | class SumsHydrator extends GeneratedHydrator |
||
8 | { |
||
9 | public function hydrate(array $data, $object): object |
||
10 | { |
||
11 | if (!isset($data['sums'])) { |
||
12 | throw new PriceInvalidArgumentException('Missing required key: sums'); |
||
13 | } |
||
14 | return new Sums($data['sums']); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | * @param Sums $object |
||
20 | */ |
||
21 | public function extract($object): array |
||
25 | ]; |
||
26 | } |
||
28 |
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