From a63a58b2b073dab47439354041ced83550ade714 Mon Sep 17 00:00:00 2001 From: Simon Sprankel Date: Fri, 21 Oct 2022 22:09:38 +0200 Subject: [PATCH] Fix PHP8 issue, fixes#41 --- Plugin/CreateMissingAttributeOptionPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/CreateMissingAttributeOptionPlugin.php b/Plugin/CreateMissingAttributeOptionPlugin.php index 45582e0..905cc0e 100644 --- a/Plugin/CreateMissingAttributeOptionPlugin.php +++ b/Plugin/CreateMissingAttributeOptionPlugin.php @@ -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;