| Total Complexity | 7 |
| Total Lines | 84 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | abstract class Parameter implements Contract |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @param non-empty-string $name The name |
||
| 29 | * @param non-empty-string $description The description |
||
| 30 | */ |
||
| 31 | public function __construct( |
||
| 32 | protected string $name, |
||
| 33 | protected string $description, |
||
| 34 | protected Cast|null $cast = null, |
||
| 35 | ) { |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritDoc |
||
| 40 | */ |
||
| 41 | #[Override] |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritDoc |
||
| 49 | */ |
||
| 50 | #[Override] |
||
| 51 | public function withName(string $name): static |
||
| 52 | { |
||
| 53 | $new = clone $this; |
||
| 54 | |||
| 55 | $new->name = $name; |
||
| 56 | |||
| 57 | return $new; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @inheritDoc |
||
| 62 | */ |
||
| 63 | #[Override] |
||
| 64 | public function getCast(): Cast|null |
||
| 65 | { |
||
| 66 | return $this->cast; |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @inheritDoc |
||
| 71 | */ |
||
| 72 | #[Override] |
||
| 73 | public function withCast(Cast|null $cast = null): static |
||
| 74 | { |
||
| 75 | $new = clone $this; |
||
| 76 | |||
| 77 | $new->cast = $cast; |
||
| 78 | |||
| 79 | return $new; |
||
| 80 | } |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @inheritDoc |
||
| 84 | */ |
||
| 85 | #[Override] |
||
| 89 | } |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @inheritDoc |
||
| 93 | */ |
||
| 94 | #[Override] |
||
| 102 | } |
||
| 103 | |||
| 104 | /** |
||
| 105 | * @inheritDoc |
||
| 106 | */ |
||
| 107 | #[Override] |
||
| 108 | abstract public function getCastValues(): array; |
||
| 109 | } |
||
| 110 |
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