Problem/Motivation

seeds_security requires activities, password_policy and login_security. Their latest releases (activities 1.0.4, password_policy 4.0.3, login_security 2.0.7) still raise PHP 8.4+ deprecations: "Implicitly marking parameter ... as nullable is deprecated". Fixes exist upstream but are not released yet.

Steps to reproduce

Run PHP 8.4 or newer with error_reporting set to E_ALL and lint or load these files:

  • activities: ActivitiesLogger::prepareUser() and ActivitiesLoggerInterface::log() ($account)
  • password_policy: PolicyConfiguration::create() ($migration)
  • login_security: LoginSecurityTrack::create() ($migration)

Proposed resolution

Add the upstream patches to extra.patches in composer.json:

The patched files lint clean on PHP 8.5.

Remaining tasks

Review and merge. Remove each patch once the module r

User interface changes

None.

API changes

None.

Data model changes

None.

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

mohamad albarghouthi created an issue.