From 784ba588abb3e101166615693360c7b219bffcef Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 15 Feb 2024 14:47:23 +0200 Subject: [PATCH] fix exceptions --- src/Manticore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Manticore.php b/src/Manticore.php index e12bd85..3794577 100644 --- a/src/Manticore.php +++ b/src/Manticore.php @@ -130,7 +130,7 @@ class Manticore { if (false === $key = json_encode($key)) { - throw new Exception(); + return null; } } @@ -138,7 +138,7 @@ class Manticore { if (false === $value = json_encode($value)) { - throw new Exception(); + return null; } }