Deprecations for next major php version

Created on 30 December 2024, 10 days ago

Problem/Motivation

While running tests of the next major PHP version for OpenID Connect, we started seeing the following deprecation messages coming from ExternalAuth:

Deprecated: Drupal\externalauth\Authmap::delete(): Implicitly marking parameter $provider as nullable is deprecated, the explicit nullable type must be used instead in /builds/project/openid_connect/web/modules/contrib/externalauth/src/Authmap.php on line 123

Deprecated: Drupal\externalauth\AuthmapInterface::delete(): Implicitly marking parameter $provider as nullable is deprecated, the explicit nullable type must be used instead in /builds/project/openid_connect/web/modules/contrib/externalauth/src/AuthmapInterface.php on line 90

Those messages are displaying here: https://git.drupalcode.org/project/openid_connect/-/jobs/3848290#L188

Proposed resolution

Change the method definition from:

public function delete(int $uid, string $provider = NULL) {

to

public function delete(int $uid, ?string $provider = NULL) {
πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pfrilling Minster, OH

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024