Fix deprecated php warnings

Created on 1 August 2023, over 1 year ago
Updated 14 August 2023, over 1 year ago

Fix for deprecated PHP functions:

Deprecated function: Return type of Drupal\elasticsearch_search_api\Search\Facet\FacetValuesCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (regel 8 van /var/www/***/web/modules/contrib/elasticsearch_search_api/src/Search/Facet/FacetValuesCollection.php)

Deprecated function: Return type of Drupal\elasticsearch_search_api\Search\Facet\FacetValuesCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (regel 8 van /var/www/***/web/modules/contrib/elasticsearch_search_api/src/Search/Facet/FacetValuesCollection.php)

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\elasticsearch_search_api\Controller\SearchController->getSuggestions() (regel 535 van /var/www/***/web/modules/contrib/elasticsearch_search_api/src/Controller/SearchController.php)

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium jOpdebeeck

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024