diff --git a/classes/ObjectHelper.php b/classes/ObjectHelper.php index 6668487..4ff7d0d 100644 --- a/classes/ObjectHelper.php +++ b/classes/ObjectHelper.php @@ -60,14 +60,14 @@ public static function resolveClassType(string $class): string /** * Converts line endings based on the system's configuration */ - public static function convertLineEndings(string $markup): string + public static function convertLineEndings(?string $markup): string { if (Config::get('cms.convertLineEndings', false) === true) { $markup = str_replace("\r\n", "\n", $markup); $markup = str_replace("\r", "\n", $markup); } - return $markup; + return $markup ?? ''; } /**