PHP 8.4 deprecation warnings

Created on 20 September 2025, 25 days ago

Problem/Motivation

I just upgraded my local environment to PHP 8.4 and I see a stream of warnings:

Deprecated: Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::getConnection(): Implicitly marking parameter $database as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 68

Deprecated: Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::getCollections(): Implicitly marking parameter $database as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 155

Deprecated: Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::createCollection(): Implicitly marking parameter $database as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 168

Deprecated: Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::dropCollection(): Implicitly marking parameter $database as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 197

Deprecated: Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::insertIntoCollection(): Implicitly marking parameter $database as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 225

Deprecated: Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::deleteFromCollection(): Implicitly marking parameter $database as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 252

Deprecated: Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::querySearch(): Implicitly marking parameter $database as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 303

Deprecated: Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::vectorSearch(): Implicitly marking parameter $database as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 329

Deprecated: Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::getVdbIds(): Implicitly marking parameter $database as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 362

Steps to reproduce

Install this module in a PHP 8.4 instance

Proposed resolution

See this link for a fix.

Remaining tasks

Testing.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇨🇦Canada danrod Ottawa

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

Comments & Activities

Not all content is available!

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

No activities found.

Production build 0.71.5 2024