fix exceptions

This commit is contained in:
ghost 2024-02-15 14:47:23 +02:00
parent 827e836c4d
commit 784ba588ab

View File

@ -130,7 +130,7 @@ class Manticore
{ {
if (false === $key = json_encode($key)) if (false === $key = json_encode($key))
{ {
throw new Exception(); return null;
} }
} }
@ -138,7 +138,7 @@ class Manticore
{ {
if (false === $value = json_encode($value)) if (false === $value = json_encode($value))
{ {
throw new Exception(); return null;
} }
} }