Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | final class JsonDecode |
||
20 | { |
||
21 | public function __invoke(string $jsonString): object |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Better json error message |
||
35 | * |
||
36 | * Taken from [how Composer uses this library] in https://github.com/Seldaek/jsonlint |
||
37 | * |
||
38 | * @see https://github.com/composer/composer/blob/56edd53046fd697d32b2fd2fbaf45af5d7951671/src/Composer/Json/JsonFile.php#L283-L318 |
||
39 | */ |
||
40 | private function getJsonErrorMsg(string $json): ParsingException |
||
52 |