Skip to content

Commit

Permalink
Fix generic type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
kitloong committed Feb 9, 2025
1 parent 1ad5e56 commit 762e561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Database/PgSQLSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getTableNames(): Collection

return $table['schema'] === $searchPath;
})
->pluck('name')
->map(static fn (array $table): string => $table['name'])
->values();
}

Expand Down
2 changes: 1 addition & 1 deletion src/Migration/Generator/IndexGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function getNotChainableIndexes(Collection $indexes, Collection $chainabl
/**
* Get column names with length.
*
* @return array<string|\Illuminate\Database\Query\Expression>
* @return array<string>
*/
private function getColumns(Index $index): array
{
Expand Down

0 comments on commit 762e561

Please sign in to comment.