Cast description input to string with default value in StoreUpdateRequest.

This commit is contained in:
2026-06-20 23:13:59 +05:00
parent 9a6604a40b
commit 993350073c
@@ -34,7 +34,7 @@ final class StoreUpdateRequest extends FormRequest implements FormRequestDto
{
return new StoreUpdate(
title: $this->input('title'),
description: $this->input('description'),
description: (string) $this->input('description', ''),
storages: $this->storages(),
isTranslateAutomatically: (bool) $this->input('translate-automatically', false),
);