Generated with the help of an LLM.

Problem/Motivation

The 3.x branch can't be installed on Drupal 11 because evercurrent.info.yml declares core_version_requirement: ^9 || ^10.

A phpstan scan (phpstan-drupal with deprecation rules) against Drupal 11.4 also found one deprecated API call, ThemeHandlerInterface::rebuildThemeData() in UpdateHelper::sendUpdates(). It still works on Drupal 11 but is removed in Drupal 12.

Steps to reproduce

  1. Set up a Drupal 11 site.
  2. Run composer require drupal/evercurrent:3.x-dev.
  3. Composer can't resolve the package because it only supports Drupal 9 and 10.

Proposed resolution

  • Change core_version_requirement to ^10 || ^11. Drupal 9 is end-of-life.
  • Replace $this->themeHandler->rebuildThemeData() with the extension.list.theme service (reset()->getList()), injected into UpdateHelper. It was deprecated in 10.3.0 and is removed in 12.0.0 (change record).

Out of scope:

  • REQUIREMENT_* constants in evercurrent.install (deprecated in 11.2.0). Their replacement, the RequirementSeverity enum, doesn't exist on Drupal 10, so this can wait until Drupal 10 support is dropped.
  • Coding standards issues reported by phpcs. They'll be handled in a separate issue.

Remaining tasks

  • Create a merge request with the changes above.

User interface changes

None.

API changes

The evercurrent.update_helper service gets an extra constructor argument (@extension.list.theme).

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

rigoucr created an issue. See original summary.

rigoucr’s picture

Status: Active » Needs review

Providing merge request