From f98b8170bba1fa1bd5dab03d2db28f7c6e23e338 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 14 Jun 2023 13:43:36 +1200 Subject: [PATCH] FIX Return diff in ChangedFields() (#406) --- src/DataDifferencer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataDifferencer.php b/src/DataDifferencer.php index 2b44a802..a7692727 100644 --- a/src/DataDifferencer.php +++ b/src/DataDifferencer.php @@ -226,7 +226,7 @@ public function ChangedFields() $toField = $this->toRecord->$field; $escapeHtml = (!$fieldObj || $fieldObj->config()->get('escape_type') != 'xml'); $fieldDiff = Deprecation::withNoReplacement(function () use ($fromField, $toField, $escapeHtml) { - Diff::compareHTML( + return Diff::compareHTML( $fromField, $toField, $escapeHtml