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
- Update
rector.phpto useDrupalRector\Set\Drupal12SetList. - Run Rector against the module.
- 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.phpto includeDrupal12SetList
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork subentity-3610248
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
Comment #4
macsim commented