Skip to content

Commit 0783320

Browse files
committed
fixed annotations of parameter $columnNames in Table
1 parent 339e223 commit 0783320

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

lib/Doctrine/DBAL/Schema/Table.php

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,12 @@ public function columnsAreIndexed(array $columnsNames)
253253
}
254254

255255
/**
256-
* @param string[]|mixed[][] $columnNames
257-
* @param string $indexName
258-
* @param bool $isUnique
259-
* @param bool $isPrimary
260-
* @param string[] $flags
261-
* @param mixed[] $options
256+
* @param string[] $columnNames
257+
* @param string $indexName
258+
* @param bool $isUnique
259+
* @param bool $isPrimary
260+
* @param string[] $flags
261+
* @param mixed[] $options
262262
*
263263
* @return Index
264264
*
@@ -270,11 +270,7 @@ private function _createIndex(array $columnNames, $indexName, $isUnique, $isPrim
270270
throw SchemaException::indexNameInvalid($indexName);
271271
}
272272

273-
foreach ($columnNames as $columnName => $indexColOptions) {
274-
if (is_numeric($columnName) && is_string($indexColOptions)) {
275-
$columnName = $indexColOptions;
276-
}
277-
273+
foreach ($columnNames as $columnName) {
278274
if (! $this->hasColumn($columnName)) {
279275
throw SchemaException::columnDoesNotExist($columnName, $this->_name);
280276
}

0 commit comments

Comments
 (0)