| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class InvalidType extends ConversionException implements TypesException |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @param mixed $value |
||
| 22 | * @param string[] $possibleTypes |
||
| 23 | * |
||
| 24 | * @todo split into two methods |
||
| 25 | * @todo sanitize value |
||
| 26 | */ |
||
| 27 | public static function new($value, string $toType, array $possibleTypes) : self |
||
| 53 |