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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

danrod created an issue. See original summary.

danrod’s picture

Status: Active » Needs review
danrod’s picture

I created a MR for this, please review.

joshhytr’s picture

Status: Needs review » Fixed

Thanks for your work on this danrod. I've merged it into 1.0.x-dev.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.