Skip to content

Commit

Permalink
Fix uninitialized $sql array in AbstractPlatform::_getCreateTableSQL()
Browse files Browse the repository at this point in the history
  • Loading branch information
jwage committed May 29, 2019
1 parent d382e34 commit 4537719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ protected function _getCreateTableSQL($tableName, array $columns, array $options
}
$query .= ')';

$sql[] = $query;
$sql = [$query];

if (isset($options['foreignKeys'])) {
foreach ((array) $options['foreignKeys'] as $definition) {
Expand Down

0 comments on commit 4537719

Please sign in to comment.