Problem/Motivation

The module currently requires palantirnet/drupal-rector: ^0.21.0. Version 1.0 of drupal-rector introduced DrupalRector\Set\Drupal12SetList, which provides Rector rules targeting Drupal 12 deprecations. Without this upgrade, it is not possible to add a rector.php that covers Drupal 12 readiness checks.

Steps to reproduce

  1. Update rector.php to use DrupalRector\Set\Drupal12SetList.
  2. Run Rector against the module.
  3. Observe the error: Class "DrupalRector\Set\Drupal12SetList" not found.

Proposed resolution

Bump the constraint in composer.json from ^0.21.0 to ^1.0:

"palantirnet/drupal-rector": "^1.0",

Remaining tasks

  • Update composer.json
  • Update rector.php to include Drupal12SetList

User interface changes

None.

API changes

None.

Data model changes

None.

Issue fork subentity-3610248

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

macsim created an issue. See original summary.

  • macsim committed 60007c9e on 4.0.x
    task: #3610248 Upgrade drupal-rector to 1.x to support Drupal12SetList
    
macsim’s picture

Status: Active » Fixed

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

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

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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