Skip to content

Commit 6bf96ce

Browse files
authored
Merge branch 'main' into add-bucket-func-properties
2 parents 73c464a + 8633523 commit 6bf96ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Migration/Resources/Database/Database.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(
2626
protected bool $enabled = true,
2727
protected string $originalId = '',
2828
protected string $type = '',
29-
protected string $database = ''
29+
protected ?string $database = ''
3030
) {
3131
$this->id = $id;
3232
}
@@ -52,7 +52,7 @@ public static function fromArray(array $array): self
5252
enabled: $array['enabled'] ?? true,
5353
originalId: $array['originalId'] ?? '',
5454
type: $array['type'] ?? 'legacy',
55-
database: $array['database']
55+
database: $array['database'] ?? null
5656
);
5757
}
5858

@@ -97,7 +97,7 @@ public function getType(): string
9797
return $this->type;
9898
}
9999

100-
public function getDatabase(): string
100+
public function getDatabase(): ?string
101101
{
102102
return $this->database;
103103
}

0 commit comments

Comments
 (0)