🤖 Auto commit for release 'develop' on 2026-01-23

This commit is contained in:
JC5
2026-01-23 15:14:29 +01:00
parent 8f15a32bd6
commit eeeba86d38
888 changed files with 10732 additions and 10387 deletions

View File

@@ -47,7 +47,7 @@ class UpdateRequest extends FormRequest
'title' => ['title', 'convertString'],
'notes' => ['notes', 'stringWithNewlines'],
'attachable_type' => ['attachable_type', 'convertString'],
'attachable_id' => ['attachable_id', 'convertInteger']
'attachable_id' => ['attachable_id', 'convertInteger'],
];
return $this->getAllData($fields);
@@ -59,7 +59,7 @@ class UpdateRequest extends FormRequest
public function rules(): array
{
$models = config('firefly.valid_attachment_models');
$models = array_map(static fn(string $className): string => str_replace('FireflyIII\Models\\', '', $className), $models);
$models = array_map(static fn (string $className): string => str_replace('FireflyIII\Models\\', '', $className), $models);
$models = implode(',', $models);
$model = $this->convertString('attachable_type');
@@ -68,7 +68,7 @@ class UpdateRequest extends FormRequest
'title' => ['min:1', 'max:255'],
'notes' => 'min:1|max:32768',
'attachable_type' => sprintf('in:%s', $models),
'attachable_id' => ['numeric', new IsValidAttachmentModel($model)]
'attachable_id' => ['numeric', new IsValidAttachmentModel($model)],
];
}
}