Visitar URL original
Merge pull request #18720 from kamil-tekiela/build-invocations · phpmyadmin/phpmyadmin@cd0d116 · GitHub
Skip to content

Commit cd0d116

Browse files
Merge pull request #18720 from kamil-tekiela/build-invocations
Fix build() invocations
2 parents e136cfb + 8877ac4 commit cd0d116

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/Plugins/Export/ExportSql.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,19 +1562,19 @@ public function getTableDef(
15621562
foreach ($statement->fields as $key => $field) {
15631563
if ($field->isConstraint) {
15641564
// Creating the parts that add constraints.
1565-
$constraints[] = $field::build($field);
1565+
$constraints[] = $field->build();
15661566
unset($statement->fields[$key]);
15671567
} elseif ($field->key !== null) {
15681568
// Creating the parts that add indexes (must not be
15691569
// constraints).
15701570
if ($field->key->type === 'FULLTEXT KEY') {
1571-
$indexesFulltext[] = $field::build($field);
1571+
$indexesFulltext[] = $field->build();
15721572
unset($statement->fields[$key]);
15731573
} elseif (empty($GLOBALS['sql_if_not_exists'])) {
15741574
$indexes[] = str_replace(
15751575
'COMMENT=\'',
15761576
'COMMENT \'',
1577-
$field::build($field),
1577+
$field->build(),
15781578
);
15791579
unset($statement->fields[$key]);
15801580
}
@@ -1595,7 +1595,7 @@ public function getTableDef(
15951595
continue;
15961596
}
15971597

1598-
$autoIncrement[] = $field::build($field);
1598+
$autoIncrement[] = $field->build();
15991599
$field->options->remove('AUTO_INCREMENT');
16001600
}
16011601

0 commit comments

Comments
 (0)