Commit 923f502 1 parent 6b15a12 commit 923f502 Copy full SHA for 923f502
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -138,18 +138,18 @@ public function hasSpace(string $space): bool
138
138
139
139
public function migrate (array $ migrations = []): void
140
140
{
141
- $ migrations = [];
141
+ $ instances = [];
142
142
foreach (func_get_args () as $ arg ) {
143
143
if (!is_array ($ arg )) {
144
144
$ arg = (array ) $ arg ;
145
145
}
146
146
foreach ($ arg as $ instance ) {
147
- $ migrations [] = is_string ($ instance ) ? new $ instance () : $ instance ;
147
+ $ instances [] = is_string ($ instance ) ? new $ instance () : $ instance ;
148
148
}
149
149
}
150
- array_map (fn (Migration $ migration ) => $ migration ->beforeSchema ($ this ), $ migrations );
150
+ array_map (fn (Migration $ migration ) => $ migration ->beforeSchema ($ this ), $ instances );
151
151
array_map (fn (Space $ space ) => $ space ->migrate (), $ this ->getSpaces ());
152
- array_map (fn (Migration $ migration ) => $ migration ->afterSchema ($ this ), $ migrations );
152
+ array_map (fn (Migration $ migration ) => $ migration ->afterSchema ($ this ), $ instances );
153
153
}
154
154
155
155
public function setSchemaId (int $ schemaId )
You can’t perform that action at this time.
0 commit comments