Skip to content

Commit c2609f8

Browse files
committed
FIX unexpected numeric colum alias
1 parent 7c23a50 commit c2609f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Components/Column.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public static function fromArray(array $array, ?string $table = null): array
8888
{
8989
$arr = [];
9090
foreach ($array as $k => $item) {
91-
$arr[] = static::fromExpression($item, $k, $table);
91+
$alias = is_numeric($k) ? null : $k;
92+
$arr[] = static::fromExpression($item, $alias, $table);
9293
}
9394
return $arr;
9495
}

0 commit comments

Comments
 (0)