Skip to content

Commit

Permalink
FIX Respect new typehints (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 29, 2024
1 parent 107aef4 commit 789ddac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DataDifferencer.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function diffedData()
if (!($toField instanceof DBField)) {
continue;
}
$toValue = $toField->forTemplate();
$toValue = $toField?->forTemplate();

// Show only to value
if (!$this->fromRecord) {
Expand All @@ -125,7 +125,7 @@ public function diffedData()
if (!($fromField instanceof DBField)) {
continue;
}
$fromValue = $fromField->forTemplate();
$fromValue = $fromField?->forTemplate();

// Show changes between the two, if any exist
if ($fromValue != $toValue) {
Expand Down Expand Up @@ -193,7 +193,7 @@ protected function getObjectDisplay($object = null)
}

// Format title
return $object->obj('Title')->forTemplate();
return $object->obj('Title')?->forTemplate();
}

/**
Expand Down

0 comments on commit 789ddac

Please sign in to comment.