chore: Аннотации к типам

This commit is contained in:
origami11@yandex.ru 2025-10-28 20:09:21 +03:00
parent 245b5c6c19
commit 704e4e0bd5
10 changed files with 73 additions and 11 deletions

View file

@ -31,7 +31,7 @@ class Form {
protected $replace;
protected $before;
/** @var array */
/** @var array<string> */
public $_title = [];
/** @var array */
public $alias = [];
@ -47,7 +47,6 @@ class Form {
'input' => Input::class,
// input с проверкой на заполненность
'inputreq' => Input::class,
'date' => Date::class,
'datereq' => Date::class,
'datetime' => DateTime::class,
@ -93,6 +92,8 @@ class Form {
/**
* Добавляет одно поле ввода на форму
* @param array{ type: string, name: string, hint?: string } $init
* @param OptionsFactory|null $factory
*/
public function addField(array $init, $factory = null): Field
{