Skip to content

Commit 0418ed9

Browse files
committed
Add type hint for getFields()
Signed-off-by: Kamil Tekiela <[email protected]>
1 parent 7f2d66f commit 0418ed9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Utils/Table.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ public static function getForeignKeys(CreateStatement $statement): array
8585
* @param CreateStatement $statement the statement to be processed
8686
*
8787
* @return array<int|string, array<string, bool|string|mixed>>
88+
* @psalm-return array<string, array{
89+
* type: string,
90+
* timestamp_not_null: bool,
91+
* default_value?: mixed,
92+
* default_current_timestamp?: true,
93+
* on_update_current_timestamp?: true,
94+
* expr?: mixed
95+
* }>
8896
*/
8997
public static function getFields($statement): array
9098
{

0 commit comments

Comments
 (0)