[*] MQ мелкие правки json
This commit is contained in:
1 parent
bdb8920d0d
commit
0f206c2acc
1 file changed
+4
-1
@@ -106,8 +106,11 @@
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function convertFromJson(string $json): array
|
||||
private function convertFromJson(?string $json): array
|
||||
{
|
||||
if(empty($json)) {
|
||||
return [];
|
||||
}
|
||||
return json_decode($json, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user