Description
This error is usually a result of an older version of rector being added in your project. Code Studio attempts to add the latest version of rector during the Pipeline. However, it uses your version if that is included in your project’s composer.lock
file.
Build stage | Job | Error message | Category | Responsibility |
---|---|---|---|---|
Test Drupal | Test Drupal | Undefined constant Rector\Core\Configuration\Option::IMPORT_DOC_BLOCKS | Application | Customer |
Resolution 1:
composer remove palantirnet/drupal-rector
.rector.php
file from the root of your project, allowing Code Studio to handle the rector going forward.Resolution 2:
composer update palantirnet/drupal-rector -W
to upgrade your rector package to the latest rector version.rector.php
file from the root of your project.cp vendor/palantirnet/drupal-rector/rector.php
to recopy the rector.php
file.Description
Build stage | Job | Error message | Category | Responsibility |
---|---|---|---|---|
Test Drupal | Test Drupal | Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator::__construct(): Argument #1 ($container) must be of type Symfony\Component\DependencyInjection\ContainerBuilder, RectorPrefix202208\Symfony\Component\DependencyInjection\ContainerBuilder given, called in /home/codestudio/.config/composer/vendor/rector/rector/vendor/symfony/dependency-injection/Loader/PhpFileLoader.php on line 67 | Application | Customer |
This error indicates that your project’s rector.php
file needs to be recreated. Newer versions of rector altered the configuration syntax, resulting in your rector.php file no longer being valid.
Resolution:
rector.php
file at the root of your project.cp vendor/palantirnet/drupal-rector/rector.php
to recopy the rector.php
file to your project.If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed May 28 2025 09:02:54 GMT+0000 (Coordinated Universal Time)