PhpFileLoader dependency injection error on GUI run on project

Created on 1 August 2022, over 2 years ago
Updated 26 January 2023, almost 2 years ago

Hi folks,

Whenever I run the upgrade_rector GUI I get arrors such as this

 [ERROR] Argument 1 passed to
         Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConf
         igurator::__construct() must be an instance of
         Symfony\Component\DependencyInjection\ContainerBuilder, instance of
         RectorPrefix202207\Symfony\Component\DependencyInjection\ContainerBuild
         er given, called in
         /var/www/bangor/vendor/rector/rector/vendor/symfony/dependency-injectio
         n/Loader/PhpFileLoader.php on line 67

If I drop out of the GUI and use the command line and run commands such as

> php vendor/bin/rector process docroot/modules/contrib/date_recur_modular --dry-run

I get a sensible return.

I am using Drupal 8.9.20
Upgrade_Rector 8.1.0-alpha8
Rector 0.13.9

Any pointers please?

Thank you in advance!

Sam

🐛 Bug report
Status

Closed: duplicate

Component

Code

Created by

🇬🇧United Kingdom sam.foster

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024