PHP 8.4 compatibility

Created on 9 July 2025, 18 days ago

Problem/Motivation

There is a function using an implicitly marked nullable parameter, which is deprecated in PHP 8.4.

Steps to reproduce

  • Use PHP 8.4
  • Enable module search_api_db_defaults
  • Enable module search_api_sorts
  • Go to /admin/config/search/search-api/index/default_index/sorts/views_page---search_content__page_1
  • See
    Deprecated: Drupal\search_api_sorts\Form\ManageSortFieldsForm::buildForm(): Implicitly marking parameter $search_api_index as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/search_api_sorts/src/Form/ManageSortFieldsForm.php on line 108

Proposed resolution

Explicitly mark parameter as nullable.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany hosterholz

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

Comments & Activities

Production build 0.71.5 2024