Skip to content

Commit 4938953

Browse files
committed
Call DbArrayHelper::arrange() instead of DbArrayHelper::index()
1 parent e0d8ce8 commit 4938953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Schema.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ private function loadTableConstraints(string $tableName, string $returnType): ar
483483

484484
/** @psalm-var array[][] $constraints */
485485
$constraints = array_map(array_change_key_case(...), $constraints);
486-
$constraints = DbArrayHelper::index($constraints, null, ['type', 'name']);
486+
$constraints = DbArrayHelper::arrange($constraints, ['type', 'name']);
487487

488488
$result = [
489489
self::PRIMARY_KEY => null,
@@ -598,7 +598,7 @@ protected function loadTableIndexes(string $tableName): array
598598

599599
/** @psalm-var array[] $indexes */
600600
$indexes = array_map(array_change_key_case(...), $indexes);
601-
$indexes = DbArrayHelper::index($indexes, null, ['name']);
601+
$indexes = DbArrayHelper::arrange($indexes, ['name']);
602602
$result = [];
603603

604604
/**

0 commit comments

Comments
 (0)