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
Comments
Comment #3
danrodComment #4
danrodI created a MR for this, please review.
Comment #5
joshhytr commentedThanks for your work on this danrod. I've merged it into 1.0.x-dev.