Skip to content

Commit

Permalink
Fix PHP 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
qzminski committed May 16, 2022
1 parent 12eae2c commit 5913984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MPFormsFormManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ public function fetchFromData($fieldName, $step = null, $key = 'originalPostData
{
$step = null === $step ? $this->getCurrentStep() : $step;

return $this->getDataOfStep($step)[$key][$fieldName];
return $this->getDataOfStep($step)[$key][$fieldName] ?? null;
}

/**
Expand Down

0 comments on commit 5913984

Please sign in to comment.