Implicit nullable warning in PHP 8.4

Created on 21 January 2026, about 8 hours ago

Problem/Motivation

Running a website using this module on PHP 8.4 and have seen the following warning appear:

Deprecated: search_api_best_bets_entity_field_access(): Implicitly marking parameter $items as nullable is deprecated, the explicit nullable type must be used instead in /data/app/modules/contrib/search_api_best_bets/search_api_best_bets.module on line 59

Steps to reproduce

  1. Have a website running Search API Best Bets
  2. Upgrade to PHP 8.4

Proposed resolution

Fix the implicit nullable. It's a straightforward change, and should be compatible with PHP 7.1 or better.

Remaining tasks

  • Fix the implicit nullable typing
  • Test

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇦🇺Australia geoffreyr Sydney, AU / Gadigal country

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024