Commit 1c8a10c0 authored by Dorian Villet's avatar Dorian Villet

Throw a RuntimeException in case the facet identifier is unknown.

parent e2ac5541
...@@ -86,6 +86,8 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac ...@@ -86,6 +86,8 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
case 'facet_pivot': case 'facet_pivot':
$method = 'createFacetPivot'; $method = 'createFacetPivot';
break; break;
default:
throw new RuntimeException('Unknown facet class identifier');
} }
foreach ($facets as $k => $facet) { foreach ($facets as $k => $facet) {
$facetObject = $facetSet->$method($k); $facetObject = $facetSet->$method($k);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment