Problem/Motivation
In rector/rector v0.18.7 there is no parameters() method for the class Rector\Config\RectorConfig.
By default the rector notices are added as comments.
Steps to reproduce
Proposed resolution
Update rector-config-template.php to remove the call and use of the parameters.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Issue fork upgrade_rector-3401571
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:
- 3401571-removal-of-rectorconfig-parameters
changes, plain diff MR !8
Comments
Comment #3
somersoft commentedComment #4
gorkagr commentedHi
I can confirm the patch works and I can run rector in a module or via CLI after the patch is applied.
Thnks!
Comment #7
gábor hojtsyThanks, I verified with https://github.com/palantirnet/drupal-rector/blob/main/rector.php that this is correct. I also removed the CSS portion of the MR :) Landed in 1.x first and cherry-picked to 2.x. Going to make the updated release once CI comes back green.
Comment #8
gábor hojtsyComment #9
gábor hojtsyReleased in https://www.drupal.org/project/upgrade_rector/releases/2.0.0-alpha2 and https://www.drupal.org/project/upgrade_rector/releases/8.x-1.0-alpha10 Thanks all!