diff --git a/src/Migration/Resources/Database/Database.php b/src/Migration/Resources/Database/Database.php index 05afab2c..6abfaac0 100644 --- a/src/Migration/Resources/Database/Database.php +++ b/src/Migration/Resources/Database/Database.php @@ -26,7 +26,7 @@ public function __construct( protected bool $enabled = true, protected string $originalId = '', protected string $type = '', - protected string $database = '' + protected ?string $database = '' ) { $this->id = $id; } @@ -52,7 +52,7 @@ public static function fromArray(array $array): self enabled: $array['enabled'] ?? true, originalId: $array['originalId'] ?? '', type: $array['type'] ?? 'legacy', - database: $array['database'] + database: $array['database'] ?? null ); } @@ -97,7 +97,7 @@ public function getType(): string return $this->type; } - public function getDatabase(): string + public function getDatabase(): ?string { return $this->database; }