array_filter

This commit is contained in:
Mathieu 2024-01-12 14:58:00 +00:00
parent 536874ef9c
commit 2e98706531

View File

@ -23,8 +23,8 @@ class FileOptions
public function toArray(): array
{
return [
return array_filter([
'name' => $this->name
];
]);
}
}