We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d6a53b commit cc1d902Copy full SHA for cc1d902
1 file changed
src/Components/Key.php
@@ -203,7 +203,11 @@ public static function build($component, array $options = array())
203
204
$columns = array();
205
foreach ($component->columns as $column) {
206
- $tmp = Context::escape($column['name']);
+ $tmp = '';
207
+ if (isset($column['name'])) {
208
+ $tmp .= Context::escape($column['name']);
209
+ }
210
+
211
if (isset($column['length'])) {
212
$tmp .= '(' . $column['length'] . ')';
213
}
0 commit comments