| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | 2 | public function value(string $enumClassname): string|int |
|
| 24 | { |
||
| 25 | 2 | $enum = new ReflectionEnum($enumClassname); |
|
| 26 | |||
| 27 | 2 | if (!$enum->isEnum()) { |
|
| 28 | throw new ExtensionArgumentException('Argument should be PHP Enum class name'); |
||
| 29 | } |
||
| 30 | |||
| 31 | 2 | return $this->randomizer->randomElement($enumClassname::cases())->value; |
|
| 32 | } |
||
| 49 |
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