Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
15 | public static function unrecognised( |
||
16 | $value, |
||
17 | Mapping $mapping, |
||
18 | array $trueValues, |
||
19 | array $falseValues |
||
20 | ): MappingFailure { |
||
21 | return new self(sprintf( |
||
22 | 'The conversion to boolean failed for property `%s`: The input ' . |
||
23 | 'value %s is not among the true values (%s) nor the false values (%s)', |
||
24 | $mapping->name(), |
||
25 | var_export($value, true), |
||
26 | self::formatList($trueValues), |
||
27 | self::formatList($falseValues) |
||
28 | )); |
||
38 |