diff --git a/src/Schema.php b/src/Schema.php index cc88fcd4..23d46723 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -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); } /**