Call to undefined method "RectorConfig::singleton()"

Created on 2 December 2023, over 1 year ago
Updated 3 December 2023, over 1 year ago

EDIT 12/3/2023 - FIXED - changed composer json require-dev to => "palantirnet/drupal-rector": "^0.18", then ran => "composer update --with-all-dependencies" which updated rector/rector and then applied the remove parameter modification patch from
https://www.drupal.org/project/upgrade_rector/issues/3401571 πŸ› Removal of RectorConfig->parameters() to support current rector release Fixed

My Composer update without the depencies switch left rector/rector on old version causing the issue

Drupal 10.1.6

Drupal Rector 0.18.2

Problem / Motivation

Call to undefined method "Rector\Config\RectorConfig::singleton()"

in
/var/www/public_html/vendor/palantirnet/drupal-rector/src/Set/../../config/drupal-8/drupal-8.0-depreca
tions.php (which is being imported from
"/var/www/public_html/vendor/palantirnet/drupal-rector/src/Set/../../config/drupal-8/drupal-8-all-depr
ecations.php").

if running for example

php vendor/bin/rector process /var/www/public_html/modules/dhoneypot

which worked on 0.15.1

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bobburns

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024