| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class InvalidType extends ConversionException implements TypesException |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param mixed $value |
||
| 16 | * @param string[] $possibleTypes |
||
| 17 | * |
||
| 18 | * @todo split into two methods |
||
| 19 | * @todo sanitize value |
||
| 20 | */ |
||
| 21 | 1260 | public static function new($value, string $toType, array $possibleTypes) : self |
|
| 47 |