From b0319cdeefbda839e330478aeedd1dcc6e57d754 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Wed, 6 Dec 2023 18:50:12 +0700 Subject: [PATCH] Fix psalm issue --- src/Schema.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); } /**