commit
b8ac790b4f
|
@ -215,6 +215,12 @@ class JsonFile
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Throws an exception according to a given code with a customized message
|
||||||
|
*
|
||||||
|
* @param int $code return code of json_last_error function
|
||||||
|
* @throws \RuntimeException
|
||||||
|
*/
|
||||||
private static function throwEncodeError($code)
|
private static function throwEncodeError($code)
|
||||||
{
|
{
|
||||||
switch ($code) {
|
switch ($code) {
|
||||||
|
|
Loading…
Reference in New Issue