Total Complexity | 5 |
Total Lines | 29 |
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) |
||
19 | { |
||
20 | Assert::notEmpty(trim($name), 'Definition name cannot be null or empty'); |
||
21 | $this->parts = explode('\\', trim($name)); |
||
22 | } |
||
23 | |||
24 | public function fullName(): string |
||
25 | { |
||
26 | return implode('\\', $this->parts); |
||
27 | } |
||
28 | |||
29 | public function isArray(): bool |
||
30 | { |
||
31 | return str_ends_with((string) $this, '[]'); |
||
32 | } |
||
33 | |||
34 | public function removeArraySuffix(): string |
||
37 | } |
||
38 | |||
39 | public function __toString(): string |
||
42 | } |
||
43 | } |
||
44 |
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