Skip to content

Commit 05dc104

Browse files
Add phpdoc for options array for addColumn and changeColumn (#2394)
1 parent b82ce16 commit 05dc104

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

src/Phinx/Db/Table.php

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,21 @@ public function reset(): void
295295
*
296296
* @param string|\Phinx\Db\Table\Column $columnName Column Name
297297
* @param string|\Phinx\Util\Literal|null $type Column Type
298-
* @param array<string, mixed> $options Column Options
298+
* @param array{
299+
* limit?: int,
300+
* length?: int,
301+
* default?: mixed,
302+
* null?: bool,
303+
* after?: string,
304+
* comment?: string,
305+
* precision?: int,
306+
* scale?: int,
307+
* signed?: bool,
308+
* values?: mixed,
309+
* identity?: bool,
310+
* update?: string,
311+
* timezone?: bool,
312+
* } $options Column Options
299313
* @throws \InvalidArgumentException
300314
* @return $this
301315
*/
@@ -358,7 +372,21 @@ public function renameColumn(string $oldName, string $newName)
358372
*
359373
* @param string $columnName Column Name
360374
* @param string|\Phinx\Db\Table\Column|\Phinx\Util\Literal $newColumnType New Column Type
361-
* @param array<string, mixed> $options Options
375+
* @param array{
376+
* limit?: int,
377+
* length?: int,
378+
* default?: mixed,
379+
* null?: bool,
380+
* after?: string,
381+
* comment?: string,
382+
* precision?: int,
383+
* scale?: int,
384+
* signed?: bool,
385+
* values?: mixed,
386+
* identity?: bool,
387+
* update?: string,
388+
* timezone?: bool,
389+
* } $options Options
362390
* @return $this
363391
*/
364392
public function changeColumn(string $columnName, string|Column|Literal $newColumnType, array $options = [])

0 commit comments

Comments
 (0)