Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
28 | class AccessControlAllowHeadersHeader extends Header |
||
29 | { |
||
30 | |||
31 | /** |
||
32 | * @var list<string> |
||
|
|||
33 | */ |
||
34 | private array $headers; |
||
35 | |||
36 | /** |
||
37 | * Constructor of the class |
||
38 | * |
||
39 | * @param string ...$headers |
||
40 | * |
||
41 | * @throws InvalidHeaderValueException |
||
42 | * If one of the header names isn't valid. |
||
43 | */ |
||
44 | 10 | public function __construct(string ...$headers) |
|
45 | { |
||
46 | /** @var list<string> $headers */ |
||
47 | |||
48 | 10 | $this->validateToken(...$headers); |
|
49 | |||
50 | 6 | $this->headers = $headers; |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 7 | public function getFieldName(): string |
|
57 | { |
||
58 | 7 | return 'Access-Control-Allow-Headers'; |
|
59 | } |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 4 | public function getFieldValue(): string |
|
67 | } |
||
68 | } |
||
69 |
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