From a5cebfaffae91749a3af921c2b8b2b47a9397e81 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Thu, 19 Mar 2026 13:18:51 +0530 Subject: [PATCH] fix: update database property type to nullable and handle defaults in fromArray method --- src/Migration/Resources/Database/Database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Migration/Resources/Database/Database.php b/src/Migration/Resources/Database/Database.php index 05afab2c48..396cdd09d1 100644 --- a/src/Migration/Resources/Database/Database.php +++ b/src/Migration/Resources/Database/Database.php @@ -26,7 +26,7 @@ class Database extends Resource protected bool $enabled = true, protected string $originalId = '', protected string $type = '', - protected string $database = '' + protected ?string $database = '' ) { $this->id = $id; } @@ -52,7 +52,7 @@ class Database extends Resource enabled: $array['enabled'] ?? true, originalId: $array['originalId'] ?? '', type: $array['type'] ?? 'legacy', - database: $array['database'] + database: $array['database'] ?? null ); } @@ -97,7 +97,7 @@ class Database extends Resource return $this->type; } - public function getDatabase(): string + public function getDatabase(): mixed { return $this->database; }