Skip to content

Commit fc7c12c

Browse files
authored
Fix psalm (#351)
1 parent 7c75b7b commit fc7c12c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
- Enh #345: Refactor according changes in `db` package (@Tigrov)
3535
- New #344: Add `caseSensitive` option to like condition (@vjik)
3636
- Enh #347: Remove `getCacheKey()` and `getCacheTag()` methods from `Schema` class (@Tigrov)
37-
- Enh #350: Use `DbArrayHelper::arrange()` instead of `DbArrayHelper::index()` method (@Tigrov)
37+
- Enh #350, #351: Use `DbArrayHelper::arrange()` instead of `DbArrayHelper::index()` method (@Tigrov)
3838

3939
## 1.2.0 March 21, 2024
4040

Diff for: src/Schema.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* }
4242
* @psalm-type GroupedForeignKeyInfo = array<
4343
* string,
44-
* ForeignKeyInfo[]
44+
* list<ForeignKeyInfo>
4545
* >
4646
* @psalm-type IndexInfo = array{
4747
* seqno:string,
@@ -529,7 +529,7 @@ private function loadTableConstraints(string $tableName, string $returnType): Co
529529
* @throws InvalidConfigException
530530
* @throws Throwable
531531
*
532-
* @psalm-return ForeignKeyInfo[]
532+
* @psalm-return list<ForeignKeyInfo>
533533
*/
534534
private function getPragmaForeignKeyList(string $tableName): array
535535
{
@@ -539,7 +539,7 @@ private function getPragmaForeignKeyList(string $tableName): array
539539
$foreignKeysList = array_map(array_change_key_case(...), $foreignKeysList);
540540
DbArrayHelper::multisort($foreignKeysList, 'seq');
541541

542-
/** @psalm-var ForeignKeyInfo[] $foreignKeysList */
542+
/** @psalm-var list<ForeignKeyInfo> $foreignKeysList */
543543
return $foreignKeysList;
544544
}
545545

0 commit comments

Comments
 (0)