Merge branch 'main' into backup-migration-multitype

This commit is contained in:
premtsd-code authored and GitHub committed 2026-03-24 11:53:33 +00:00
commit 0075ba97a6
1 file changed
+3 -3
@@ -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(): ?string
{
return $this->database;
}