Skip to content

Commit

Permalink
Merge pull request #42 from firegento/sprankhub-patch-1
Browse files Browse the repository at this point in the history
Fix PHP8 issue, fixes#41
  • Loading branch information
sprankhub authored May 12, 2023
2 parents 5557f54 + a63a58b commit a84688e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/CreateMissingAttributeOptionPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function beforeIsAttributeValid(Validator $subject, $attrCode, array $att
return [$attrCode, $attrParams, $rowData];
}

$values = explode(Product::PSEUDO_MULTI_LINE_SEPARATOR, $rowData[$attrCode]);
$values = explode(Product::PSEUDO_MULTI_LINE_SEPARATOR, (string)$rowData[$attrCode]);
$values = array_filter($values, function ($optionName) use ($attrParams) {
if (!strlen($optionName)) {
return false;
Expand Down

0 comments on commit a84688e

Please sign in to comment.