Minor change for post traits

This commit is contained in:
Visman 2021-03-20 22:19:15 +07:00
parent f549d2dc7f
commit d723f13f82
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ trait PostFormTrait
/**
* Возвращает данные для построения формы создания темы/сообщения
*/
protected function messageForm(Model $model, string $marker, array $args, bool $edit, bool $first, bool $quick): array
protected function messageForm(?Model $model, string $marker, array $args, bool $edit, bool $first, bool $quick): array
{
$vars = $args['_vars'] ?? null;

View file

@ -98,7 +98,7 @@ trait PostValidatorTrait
/**
* Подготовка валидатора к проверке данных из формы создания темы/сообщения
*/
protected function messageValidator(Model $model, string $marker, array $args, bool $edit, bool $first): Validator
protected function messageValidator(?Model $model, string $marker, array $args, bool $edit, bool $first): Validator
{
$this->c->Lang->load('validator');