Fixed tests

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-05-14 13:42:19 +02:00
parent b65cb967be
commit 4058312eb9
4 changed files with 31 additions and 28 deletions
+5 -2
View File
@@ -79,9 +79,12 @@ class UploadFileRequest extends Request
{
$attributes = [];
for ($i = 0; $i < count($this->file); $i++) {
$attributes['file.'.$i] = $this->file[$i]->getClientOriginalName();
if ($this->file) {
for ($i = 0; $i < count($this->file); $i++) {
$attributes['file.'.$i] = $this->file[$i]->getClientOriginalName();
}
}
return $attributes;
}