- Issue created by @Anna D
- πΊπ¦Ukraine Anna D
Duplicated https://www.drupal.org/project/search_api_algolia/issues/3507290 π Throw an exception when trying to filter on a null value Active
With PHP 8.4, the following deprecation warning is thrown:
Deprecated: Drupal\search_api_algolia\Plugin\search_api\backend\SearchApiAlgoliaBackend::deleteAllIndexItems(): Implicitly marking parameter $index as nullable is deprecated, the explicit nullable type must be used instead in /modules/contrib/search_api_algolia/src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php on line 436
This is due to the method signature of deleteAllIndexItems() where the $index parameter is implicitly nullable, but not explicitly marked with the ? type hint.
Update the method signature to explicitly mark the parameter as nullable:
public function deleteAllIndexItems(?IndexInterface $index = NULL)
Needs work
3.0
Code
Duplicated https://www.drupal.org/project/search_api_algolia/issues/3507290 π Throw an exception when trying to filter on a null value Active