diff --git a/src/module-elasticsuite-catalog-graph-ql/DataProvider/Product/LayeredNavigation/Builder/Attribute.php b/src/module-elasticsuite-catalog-graph-ql/DataProvider/Product/LayeredNavigation/Builder/Attribute.php index 4809d1f94..46efc5271 100644 --- a/src/module-elasticsuite-catalog-graph-ql/DataProvider/Product/LayeredNavigation/Builder/Attribute.php +++ b/src/module-elasticsuite-catalog-graph-ql/DataProvider/Product/LayeredNavigation/Builder/Attribute.php @@ -138,7 +138,7 @@ function ($frontendLabel) use ($storeId) { $optionLabel = $value->getValue(); if ($attribute && $attribute->getFrontendInput() == 'boolean') { - $optionLabel = $attribute->getSource()->getOptionText($value->getValue()); + $optionLabel = (string) $attribute->getSource()->getOptionText($value->getValue()); } $options[] = $this->layerFormatter->buildItem($optionLabel, $value->getValue(), $metrics['count']);