| 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 VaryHeader extends Header |
||
| 29 | { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var list<string> |
||
|
|
|||
| 33 | */ |
||
| 34 | private array $value; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Constructor of the class |
||
| 38 | * |
||
| 39 | * @param string ...$value |
||
| 40 | * |
||
| 41 | * @throws InvalidHeaderValueException |
||
| 42 | * If one of the values isn't valid. |
||
| 43 | */ |
||
| 44 | 10 | public function __construct(string ...$value) |
|
| 45 | { |
||
| 46 | /** @var list<string> $value */ |
||
| 47 | |||
| 48 | 10 | $this->validateToken(...$value); |
|
| 49 | |||
| 50 | 6 | $this->value = $value; |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | 7 | public function getFieldName(): string |
|
| 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