File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Migration/Resources/Database Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments