trim(): Passing null to parameter #1 ($string) of type string is deprecated

Created on 9 August 2023, over 1 year ago
Updated 3 January 2024, 11 months ago
Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->formatFilterValue
#0 /mnt/www/html/docroot/core/includes/bootstrap.inc(347): _drupal_error_handler_real(8192, 'trim(): Passing...', '/mnt/www/html/p...', 3659)
#1 [internal function]: _drupal_error_handler(8192, 'trim(): Passing...', '/mnt/www/html/p...', 3659)
#2 /mnt/www/html/docroot/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(3659): trim(NULL)
#3 /mnt/www/html/docroot/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(3500): Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->formatFilterValue(NULL, 'string')

we are seeing issue when we creating condition group where we are checking isNull for any column and with php 8.1

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇳India sreenivasparuchuri

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

Comments & Activities

Production build 0.71.5 2024