Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Nov 26, 2023
1 parent 6b7b639 commit b3be66b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Enh #779: Specify populate closure type in `BatchQueryResultInterface` (@vjik)
- Enh #778: Deprecate unnecessary argument `$rawSql` of `AbstractCommand::internalExecute()` (@Tigrov)
- Enh #784: Specify result type of `ConstraintSchemaInterface::getTableIndexes()` method to `IndexConstraint[]` (@vjik)
- Enh #784: Remove unused code in `AbstractSchema::getTableIndexes()` (@vjik)

## 1.2.0 November 12, 2023

Expand Down
5 changes: 2 additions & 3 deletions src/Schema/AbstractSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,8 @@ public function getTableForeignKeys(string $name, bool $refresh = false): array
*/
public function getTableIndexes(string $name, bool $refresh = false): array
{
/** @var IndexConstraint[]|null $tableIndexes */
$tableIndexes = $this->getTableMetadata($name, SchemaInterface::INDEXES, $refresh);
return is_array($tableIndexes) ? $tableIndexes : [];
/** @var IndexConstraint[] */
return $this->getTableMetadata($name, SchemaInterface::INDEXES, $refresh);
}

/**
Expand Down

0 comments on commit b3be66b

Please sign in to comment.