diff --git a/src/Command/CommandInterface.php b/src/Command/CommandInterface.php index 3ecf95d2e..270c4075e 100644 --- a/src/Command/CommandInterface.php +++ b/src/Command/CommandInterface.php @@ -314,6 +314,8 @@ public function createIndex( * @throws NotSupportedException * * Note: The method will quote the `table` and `columns` parameter before using it in the generated SQL. + * + * @psalm-param array|string[] $columns */ public function createTable(string $table, array $columns, string $options = null): static; diff --git a/src/QueryBuilder/AbstractDDLQueryBuilder.php b/src/QueryBuilder/AbstractDDLQueryBuilder.php index 236fa5bdd..6e31c9c62 100644 --- a/src/QueryBuilder/AbstractDDLQueryBuilder.php +++ b/src/QueryBuilder/AbstractDDLQueryBuilder.php @@ -169,7 +169,6 @@ public function createTable(string $table, array $columns, string $options = nul { $cols = []; - /** @psalm-var array|string[] $columns */ foreach ($columns as $name => $type) { if (is_string($name)) { $cols[] = "\t" diff --git a/src/QueryBuilder/DDLQueryBuilderInterface.php b/src/QueryBuilder/DDLQueryBuilderInterface.php index c5b9e5498..c6e97fb7d 100644 --- a/src/QueryBuilder/DDLQueryBuilderInterface.php +++ b/src/QueryBuilder/DDLQueryBuilderInterface.php @@ -239,6 +239,8 @@ public function createIndex( * @return string The SQL statement for creating a new DB table. * * Note: The method will quote the `table` and `columns` parameter before using it in the generated SQL. + * + * @psalm-param array|string[] $columns */ public function createTable(string $table, array $columns, string $options = null): string;