| Total Complexity | 7 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 13 | final class Name implements Stringable |
||
| 14 | { |
||
| 15 | /** @var string[] */ |
||
| 16 | private array $parts; |
||
| 17 | |||
| 18 | public function __construct(string $name) |
||
| 22 | } |
||
| 23 | |||
| 24 | public function first(): string |
||
| 25 | { |
||
| 26 | return $this->parts[0]; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function fullName(): string |
||
| 30 | { |
||
| 31 | return implode('\\', $this->parts); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function isArray(): bool |
||
| 35 | { |
||
| 36 | return str_ends_with((string) $this, '[]'); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function removeArraySuffix(): string |
||
| 40 | { |
||
| 41 | return str_replace(search: '[]', replace: '', subject: $this->fullName()); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function __toString(): string |
||
| 45 | { |
||
| 46 | return $this->parts[count($this->parts) - 1]; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function packageName(): string |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
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