| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.2098 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 17 | 2 | public static function loadEnumValues(string $classname): array |
|
| 18 | { |
||
| 19 | try { |
||
| 20 | 2 | $reflection = new \ReflectionClass($classname); |
|
| 21 | } catch (\ReflectionException $exception) { |
||
| 22 | throw new \InvalidArgumentException("Problem with fetching reflection of class: `" . var_export($classname, true) . "`", 0, $exception); |
||
| 23 | } |
||
| 24 | |||
| 25 | 2 | $analyzer = static::getAnalyzer(); |
|
| 26 | 2 | $docblock = $reflection->getDocComment() ?: ''; |
|
| 27 | 2 | return $analyzer->analyzeValuesFromDocblock($docblock); |
|
| 28 | } |
||
| 38 | } |
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