Skip to content

Commit a33ff9c

Browse files
committed
docs: add PHPDoc types
1 parent 145e89a commit a33ff9c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

system/Database/SQLite3/Table.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Table
2828
/**
2929
* All of the fields this table represents.
3030
*
31-
* @var array<string, array<string, bool|int|string|null>>
31+
* @var array<string, array<string, bool|int|string|null>> [name => attributes]
3232
*/
3333
protected $fields = [];
3434

@@ -156,7 +156,7 @@ public function run(): bool
156156
/**
157157
* Drops columns from the table.
158158
*
159-
* @param array|string $columns
159+
* @param list<string>|string $columns Column names to drop.
160160
*
161161
* @return Table
162162
*/
@@ -180,6 +180,8 @@ public function dropColumn($columns)
180180
* Modifies a field, including changing data type,
181181
* renaming, etc.
182182
*
183+
* @param array<string, array<string, bool|int|string|null>> $fields [name => attributes]
184+
*
183185
* @return Table
184186
*/
185187
public function modifyColumn(array $fields)

0 commit comments

Comments
 (0)