From 800454a3c7a059f15275b5078eace167ca142758 Mon Sep 17 00:00:00 2001 From: Rouven Alexander Rieker Date: Wed, 17 Aug 2022 14:53:08 +0200 Subject: [PATCH] fix: php8.1 compatibility for yaml export with null values --- Model/File/Writer/YamlWriter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Model/File/Writer/YamlWriter.php b/Model/File/Writer/YamlWriter.php index 15d24cf..c0aad1a 100644 --- a/Model/File/Writer/YamlWriter.php +++ b/Model/File/Writer/YamlWriter.php @@ -94,6 +94,10 @@ private function getIndentation($length, $string = ' ') */ private function prepareValue($value) { + if ($value === null) { + return ''; + } + if (is_numeric($value)) { return $value; }