craftcms / craftcms/rector

fatal error with rector/rector:0.17.1

Open
#14 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
17
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Description

not compatible with rector/rector:0.17.1
https://github.com/craftcms/rector/actions/runs/5268744494/jobs/9525881470

can be run if you downgrade ddev composer require rector/rector:0.17.0 --dev

[ERROR] Class "Rector\Arguments\ValueObject\RemoveMethodCallParam" not found

Steps to reproduce
  1. install using composer require craftcms/rector:dev-main --dev
    2.Run vendor/bin/rector process src --config vendor/craftcms/rector/sets/craft-cms-40.php
Additional info
  • Craft version: 4
  • PHP version: 8.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with composer require craftcms/rector:dev-main --dev and vendor/bin/rector process src --config vendor/craftcms/rector/sets/craft-cms-40.php, comparing Rector 0.17.1 with the working 0.17.0 downgrade. Use the linked GitHub Actions run and the missing RemoveMethodCallParam class as the starting evidence; done means the process completes successfully with Rector 0.17.1.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.