Skip to content

Commit

Permalink
Update src/core/etl/src/Flow/ETL/Row/Reference/Expression/Cast.php
Browse files Browse the repository at this point in the history
Co-authored-by: Joseph Bielawski <[email protected]>
  • Loading branch information
norberttech and stloyd authored Oct 13, 2023
1 parent 2b4ff1b commit ec10368
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/etl/src/Flow/ETL/Row/Reference/Expression/Cast.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ec10368

Please sign in to comment.