From 615c343930016e25531d453f5199b18a14656928 Mon Sep 17 00:00:00 2001 From: nelutihon Date: Tue, 12 Nov 2024 19:19:08 +0200 Subject: [PATCH] check if data that is going to be deserialized is also empty --- src/Traits/Deserializes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/Deserializes.php b/src/Traits/Deserializes.php index bf1807f3d..913b8aeb4 100644 --- a/src/Traits/Deserializes.php +++ b/src/Traits/Deserializes.php @@ -25,7 +25,7 @@ trait Deserializes public static function deserialize(mixed $data): mixed { - if (is_null($data)) { + if (is_null($data) || empty($data)) { return null; }