Minor change for post traits
This commit is contained in:
parent
f549d2dc7f
commit
d723f13f82
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue