Skip to content

Commit a84688e

Browse files
authored
Merge pull request #42 from firegento/sprankhub-patch-1
Fix PHP8 issue, fixes#41
2 parents 5557f54 + a63a58b commit a84688e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/CreateMissingAttributeOptionPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function beforeIsAttributeValid(Validator $subject, $attrCode, array $att
4848
return [$attrCode, $attrParams, $rowData];
4949
}
5050

51-
$values = explode(Product::PSEUDO_MULTI_LINE_SEPARATOR, $rowData[$attrCode]);
51+
$values = explode(Product::PSEUDO_MULTI_LINE_SEPARATOR, (string)$rowData[$attrCode]);
5252
$values = array_filter($values, function ($optionName) use ($attrParams) {
5353
if (!strlen($optionName)) {
5454
return false;

0 commit comments

Comments
 (0)