Commit fe4e445a authored by slasher13's avatar slasher13 Committed by borisson_

Issue #2821036 by slasher13: add type hint

parent 155dd172
......@@ -118,7 +118,7 @@ class CoreNodeSearchFacetSource extends FacetSourcePluginBase implements CoreSea
/**
* {@inheritdoc}
*/
public function fillFacetsWithResults($facets) {
public function fillFacetsWithResults(array $facets) {
foreach ($facets as $facet) {
$configuration = array(
'query' => NULL,
......
......@@ -23,7 +23,7 @@ interface FacetSourcePluginInterface extends PluginFormInterface, DependentPlugi
* @param \Drupal\facets\FacetInterface[] $facets
* The configured facets.
*/
public function fillFacetsWithResults($facets);
public function fillFacetsWithResults(array $facets);
/**
* Returns the allowed query types for a given facet for the facet source.
......
......@@ -95,7 +95,7 @@ class SearchApiViews extends SearchApiBaseFacetSource implements SearchApiFacetS
/**
* {@inheritdoc}
*/
public function fillFacetsWithResults($facets) {
public function fillFacetsWithResults(array $facets) {
// Check if there are results in the static cache.
$results = $this->searchApiQueryHelper->getResults($this->pluginId);
......
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