Skip to content

Commit a7896f8

Browse files
authored
Fix psalm errors (#376)
1 parent 77ee778 commit a7896f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Schema.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ protected function loadTableIndexes(string $tableName): array
250250
':tableName' => $nameParts['name'],
251251
])->queryAll();
252252

253+
/** @psalm-var list<array<string,mixed>> $indexes */
253254
$indexes = array_map(array_change_key_case(...), $indexes);
254255
$indexes = DbArrayHelper::arrange($indexes, ['name']);
255256

@@ -493,6 +494,7 @@ private function loadTableConstraints(string $tableName, string $returnType): ar
493494
':tableName' => $nameParts['name'],
494495
])->queryAll();
495496

497+
/** @psalm-var list<array<string,mixed>> $constraints */
496498
$constraints = array_map(array_change_key_case(...), $constraints);
497499
$constraints = DbArrayHelper::arrange($constraints, ['type', 'name']);
498500

0 commit comments

Comments
 (0)