Skip to content

Commit d8159bf

Browse files
committed
Fix psalm
1 parent 348ccd8 commit d8159bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Schema.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ private function loadTableConstraints(string $tableName, string $returnType): ar
481481
':tableName' => $resolvedName->getName(),
482482
])->queryAll();
483483

484-
/** @psalm-var array[][] $constraints */
485484
$constraints = array_map(array_change_key_case(...), $constraints);
486485
$constraints = DbArrayHelper::arrange($constraints, ['type', 'name']);
487486

@@ -596,14 +595,13 @@ protected function loadTableIndexes(string $tableName): array
596595
':tableName' => $resolvedName->getName(),
597596
])->queryAll();
598597

599-
/** @psalm-var array[] $indexes */
600598
$indexes = array_map(array_change_key_case(...), $indexes);
601599
$indexes = DbArrayHelper::arrange($indexes, ['name']);
602600
$result = [];
603601

604602
/**
605-
* @psalm-var object|string|null $name
606-
* @psalm-var array[] $index
603+
* @var string $name
604+
* @var array[] $index
607605
*/
608606
foreach ($indexes as $name => $index) {
609607
$ic = new IndexConstraint();

0 commit comments

Comments
 (0)