From 6e53b57df53826dfd964413a8a90230a72502051 Mon Sep 17 00:00:00 2001 From: Niels Vanpachtenbeke <10651054+Nielsvanpach@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:15:42 +0200 Subject: [PATCH] allow null values --- src/Config/BackupConfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config/BackupConfig.php b/src/Config/BackupConfig.php index 1de5347a..dc0791e8 100644 --- a/src/Config/BackupConfig.php +++ b/src/Config/BackupConfig.php @@ -35,8 +35,8 @@ public static function fromArray(array $data): self return new self( name: $data['name'], source: SourceConfig::fromArray($data['source']), - databaseDumpCompressor: $data['database_dump_compressor'], - databaseDumpFileTimestampFormat: $data['database_dump_file_timestamp_format'], + databaseDumpCompressor: $data['database_dump_compressor'] ?? null, + databaseDumpFileTimestampFormat: $data['database_dump_file_timestamp_format'] ?? null, databaseDumpFilenameBase: $data['database_dump_filename_base'], databaseDumpFileExtension: $data['database_dump_file_extension'], destination: DestinationConfig::fromArray($data['destination']),