From 5fcf0f610c326afc75e45e7be7a017cfa43621cd Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 11 Jan 2025 08:25:30 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/QueryBuilder/AbstractDDLQueryBuilder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/QueryBuilder/AbstractDDLQueryBuilder.php b/src/QueryBuilder/AbstractDDLQueryBuilder.php index 012d83c3e..85f431a2d 100644 --- a/src/QueryBuilder/AbstractDDLQueryBuilder.php +++ b/src/QueryBuilder/AbstractDDLQueryBuilder.php @@ -172,7 +172,8 @@ public function createTable(string $table, array $columns, string $options = nul $cols[] = "\t" . $this->quoter->quoteColumnName($name) . ' ' - . $this->queryBuilder->buildColumnDefinition($type instanceof ColumnInterface + . $this->queryBuilder->buildColumnDefinition( + $type instanceof ColumnInterface ? $type->withName($name) : $type );