Skip to content

Commit

Permalink
Fix psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Dec 6, 2023
1 parent 15a13a5 commit b0319cd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,12 @@ protected function loadTableForeignKeys(string $tableName): array
*
* @return array Indexes for the given table.
*
* @psalm-return array|IndexConstraint[]
* @psalm-return IndexConstraint[]
*/
protected function loadTableIndexes(string $tableName): array
{
$tableIndexes = $this->loadTableConstraints($tableName, self::INDEXES);

return is_array($tableIndexes) ? $tableIndexes : [];
/** @var IndexConstraint[] */
return $this->loadTableConstraints($tableName, self::INDEXES);
}

/**
Expand Down

0 comments on commit b0319cd

Please sign in to comment.