From 96df9305b6ba71a0e7bc611d6003de8c05943e4e Mon Sep 17 00:00:00 2001 From: xboard Date: Sun, 19 Jan 2025 21:51:38 +0800 Subject: [PATCH] fix: correct know issues --- app/Models/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Server.php b/app/Models/Server.php index 1b1bcae..27b8b0a 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -141,7 +141,7 @@ class Server extends Model private function castValueWithConfig($value, array $config) { - if ($value === null) { + if ($value === null && $config['type'] !== 'object') { return $config['default'] ?? null; }