Skip to content

Commit 8c6ea53

Browse files
committed
Fix PossiblyNullArrayOffset issues
1 parent 19a8897 commit 8c6ea53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Doctrine/DBAL/Platforms/AbstractPlatform.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,8 +1602,10 @@ public function getCreateTableSQL(Table $table, $createFlags = self::CREATE_INDE
16021602
}
16031603
}
16041604

1605+
$name = $column->getQuotedName($this);
1606+
16051607
$columnData = array_merge($column->toArray(), [
1606-
'name' => $column->getQuotedName($this),
1608+
'name' => $name,
16071609
'version' => $column->hasPlatformOption('version') ? $column->getPlatformOption('version') : false,
16081610
'comment' => $this->getColumnComment($column),
16091611
]);
@@ -1616,7 +1618,7 @@ public function getCreateTableSQL(Table $table, $createFlags = self::CREATE_INDE
16161618
$columnData['primary'] = true;
16171619
}
16181620

1619-
$columns[$columnData['name']] = $columnData;
1621+
$columns[$name] = $columnData;
16201622
}
16211623

16221624
if (($createFlags & self::CREATE_FOREIGNKEYS) > 0) {

0 commit comments

Comments
 (0)