Total Complexity | 5 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class MethodAnnotation implements Stringable |
||
14 | { |
||
15 | /** |
||
16 | * Whether the method is static. |
||
17 | */ |
||
18 | public readonly bool $isStatic; |
||
19 | |||
20 | /** |
||
21 | * Retrieve the method annotation for the given case. |
||
22 | */ |
||
23 | 4 | public static function forCase(UnitEnum $case): static |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * Retrieve the method annotation for an instance method. |
||
32 | */ |
||
33 | 4 | public static function instance(string $name, string $returnType): static |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * Instantiate the class. |
||
40 | * |
||
41 | * @param list<class-string> $namespaces |
||
42 | */ |
||
43 | 4 | final public function __construct( |
|
44 | public readonly string $name, |
||
45 | public readonly string $annotation, |
||
46 | public readonly array $namespaces = [], |
||
47 | ) { |
||
48 | 4 | $this->isStatic = str_starts_with($annotation, 'static'); |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * Retrieve the method annotation string. |
||
53 | */ |
||
54 | 4 | public function __toString(): string |
|
57 | } |
||
58 | } |
||
59 |
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