Skip to content

Commit

Permalink
Correct PHP 8.2 incompatibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
lumnn committed May 16, 2023
1 parent 960c3d1 commit 88202a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Block/PreferencesForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class PreferencesForm extends Template

public function __construct(
Context $context,
Data $mailchimpData,
array $data = [],
Data $mailchimpData
) {
parent::__construct($context, $data);

Expand Down
2 changes: 1 addition & 1 deletion Controller/Preferences/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function execute()
}

if (empty($postMergeFields[$tag])) {
$errors["data[${tag}]"] = [__("This field is required")];
$errors["data[{$tag}]"] = [__("This field is required")];
}
}

Expand Down

0 comments on commit 88202a1

Please sign in to comment.