diff --git a/Service/LinkMaskingAttributeParser.php b/Service/LinkMaskingAttributeParser.php index 2e6c0ff..73f2074 100644 --- a/Service/LinkMaskingAttributeParser.php +++ b/Service/LinkMaskingAttributeParser.php @@ -38,7 +38,12 @@ public function convertAttributeBeforeSave($filterLinkMasking) public function convertAttributeAfterLoad($filterLinkMasking) { - $attributes = $this->serializer->unserialize($filterLinkMasking); + $attributes = []; + if (is_string($filterLinkMasking)) { + $attributes = $this->serializer->unserialize($filterLinkMasking); + } elseif (is_array($filterLinkMasking)) { + $attributes = $filterLinkMasking); + } $filterData = [];