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; }