| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function convertToPHPValue($value, AbstractPlatform $platform): Locale |
||
| 42 | { |
||
| 43 | $enum = Locale::tryFrom($value); |
||
| 44 | |||
| 45 | if (is_string($value) && $enum !== null) { |
||
| 46 | return $enum; |
||
| 47 | } |
||
| 48 | |||
| 49 | throw ConversionException::conversionFailedFormat( |
||
| 50 | gettype($value), |
||
| 51 | $this->getName(), |
||
| 52 | 'One of: "' . implode('", "', Language::getValues()) . '"', |
||
| 53 | ); |
||
| 56 |
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