From 2e987065312535deaab21919a213c20fd6f0acff Mon Sep 17 00:00:00 2001 From: Mathieu Date: Fri, 12 Jan 2024 14:58:00 +0000 Subject: [PATCH] array_filter --- src/FileOptions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 - ]; + ]); } }