| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class PreDeserializeEvent extends Event |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var mixed |
||
| 17 | */ |
||
| 18 | private $data; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param mixed $data |
||
| 22 | * @param TypeArray $type |
||
|
|
|||
| 23 | */ |
||
| 24 | public function __construct(DeserializationContext $context, $data, array $type) |
||
| 25 | { |
||
| 26 | parent::__construct($context, $type); |
||
| 27 | |||
| 28 | $this->data = $data; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function setType(string $name, array $params = []): void |
||
| 32 | { |
||
| 33 | $this->type = ['name' => $name, 'params' => $params]; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return mixed |
||
| 38 | */ |
||
| 39 | public function getData() |
||
| 40 | { |
||
| 41 | return $this->data; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param mixed $data |
||
| 46 | */ |
||
| 47 | public function setData($data): void |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
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