diff --git a/src/FileOptions.php b/src/FileOptions.php index 18659bf..324328c 100644 --- a/src/FileOptions.php +++ b/src/FileOptions.php @@ -23,8 +23,8 @@ class FileOptions public function toArray(): array { - return [ + return array_filter([ 'name' => $this->name - ]; + ]); } }