diff --git a/src/Schema.php b/src/Schema.php index 25a5b5c7f..855daca6d 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -197,6 +197,7 @@ protected function loadTableIndexes(string $tableName): array ':tableName' => $nameParts['name'], ])->queryAll(); + /** @psalm-var list> $indexes */ $indexes = array_map(array_change_key_case(...), $indexes); $indexes = DbArrayHelper::arrange($indexes, ['name']); $result = []; @@ -626,6 +627,7 @@ private function loadTableConstraints(string $tableName, string $returnType): ar ':tableName' => $nameParts['name'], ])->queryAll(); + /** @psalm-var list> $constraints */ $constraints = array_map(array_change_key_case(...), $constraints); $constraints = DbArrayHelper::arrange($constraints, ['type', 'name']);