Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function exportValue(ValueInterface $value): string |
||
30 | { |
||
31 | $decodedValue = $this |
||
32 | ->decoder |
||
33 | ->exportValue($value); |
||
34 | try { |
||
35 | return json_encode( |
||
36 | $decodedValue, |
||
37 | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR |
||
38 | ); |
||
39 | } catch (Throwable $e) { |
||
40 | throw new Exception\EncodingFailedException($decodedValue, $e); |
||
41 | } |
||
44 |