Problem/Motivation
When executing a solrSearch query, a warning appears: Warning: foreach() argument must be of type array|object, null given in Drupal\graphql_search_api_solr\Plugin\GraphQL\DataProducer\SearchApi\SolrSearch->getFacetsData() (Line 208 in graphql_search_api_solr/src/Plugin/GraphQL/DataProducer/SearchApi/SolrSearch.php)
Steps to reproduce
Execute any solrSearch query without using facets at all.
Proposed resolution
See Patch/MR
Remaining tasks
-
User interface changes
-
API changes
-
Data model changes
-
Issue fork graphql_search_api_solr-3411852
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3411852-warning-foreach-argument
changes, plain diff MR !3
Comments
Comment #4
chetan 11 commentedPlease check the above MR.
Comment #5
b2f commentedComment #6
b2f commentedComment #8
b2f commentedComment #9
b2f commented