chore: Типы
This commit is contained in:
parent
233749f1ea
commit
1b6630e5f5
2 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ use Exception;
|
|||
* @phpstan-type CreateAction array{
|
||||
* type:"createTable",
|
||||
* table_name:string,
|
||||
* constraints:?array<mixed>,
|
||||
* constraints?:array{fields: array<string>, type: string}|string,
|
||||
* fields:array<mixed>,
|
||||
* }
|
||||
*
|
||||
|
|
@ -277,7 +277,7 @@ class Manager
|
|||
* Добавляет столбец в таблицу
|
||||
* @param string $table_name
|
||||
* @param string $column_name
|
||||
* @param array $field
|
||||
* @param ColumnProps $field
|
||||
*/
|
||||
public function addColumn($table_name, $column_name, $field): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ class Functions {
|
|||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param list<array<string, mixed>>|\ArrayIterator<int, array> $array
|
||||
* @param array<array<string, mixed>>|\ArrayIterator<int, array> $array
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
static function assoc_key($key, $array) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue