Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTDA9-404: Avoid warning #9

Merged
merged 2 commits into from
Aug 15, 2023
Merged

CTDA9-404: Avoid warning #9

merged 2 commits into from
Aug 15, 2023

Conversation

adam-vessey
Copy link
Contributor

text_files could/would be initialized as null, despite not being nullable, but defining it as an empty mapping allow us to avoid warnings being emitted, such as:

Warning: Invalid argument supplied for foreach() in Drupal\search_api_solr\Controller\SolrConfigSetController->getConfigFiles() (line 348 of modules/contrib/search_api_solr/src/Controller/SolrConfigSetController.php).

Drupal\search_api_solr\Controller\SolrConfigSetController->getConfigFiles() (Line: 61)
[...]

Also, some baking in some reordering as per their particular schemas that was seen across a reinstallation.

`text_files` could/would be initialized as null, despite not being
nullable, but defining it as an empty mapping allow us to avoid warnings
being emitted, such as:

```
Warning: Invalid argument supplied for foreach() in Drupal\search_api_solr\Controller\SolrConfigSetController->getConfigFiles() (line 348 of modules/contrib/search_api_solr/src/Controller/SolrConfigSetController.php).

Drupal\search_api_solr\Controller\SolrConfigSetController->getConfigFiles() (Line: 61)
[...]
```
@adam-vessey adam-vessey added the patch Backwards compatible bug fixes. label Aug 10, 2023
@adam-vessey adam-vessey changed the title CTDA9-404: Avoid some potential issues with new installations. CTDA9-404: Avoid warning Aug 10, 2023
@nchiasson-dgi nchiasson-dgi merged commit a4c1f9a into main Aug 15, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Backwards compatible bug fixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants