| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | abstract class Type implements Contract |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * @var T |
||
| 32 | */ |
||
| 33 | protected mixed $subject; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritDoc |
||
| 37 | */ |
||
| 38 | #[Override] |
||
| 39 | abstract public static function fromValue(mixed $value): static; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritDoc |
||
| 43 | */ |
||
| 44 | #[Override] |
||
| 45 | public function asValue(): mixed |
||
| 46 | { |
||
| 47 | return $this->subject; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritDoc |
||
| 52 | */ |
||
| 53 | #[Override] |
||
| 54 | public function modify(callable $closure): static |
||
| 55 | { |
||
| 56 | return static::fromValue($closure($this->subject)); |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritDoc |
||
| 61 | */ |
||
| 62 | #[Override] |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @inheritDoc |
||
| 70 | */ |
||
| 71 | #[Override] |
||
| 72 | abstract public function asFlatValue(): string|int|float|bool|null; |
||
| 73 | } |
||
| 74 |
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