diff --git a/src/core/etl/src/Flow/ETL/Row/Reference/Expression/Cast.php b/src/core/etl/src/Flow/ETL/Row/Reference/Expression/Cast.php index 3cd5d0bc2..13412db7f 100644 --- a/src/core/etl/src/Flow/ETL/Row/Reference/Expression/Cast.php +++ b/src/core/etl/src/Flow/ETL/Row/Reference/Expression/Cast.php @@ -91,9 +91,7 @@ private function toString(mixed $value) : ?string } if ($value instanceof \DOMDocument) { - $xml = $value->saveXML(); - - return false === $xml ? null : $xml; + return $value->saveXML() ?: null; } /** @phpstan-ignore-next-line */