Skip to content

Cannot autowire service "Rector\Doctrine\NodeAnalyzer\MethodCallNameOnTypeResolver" #7092

Description

@icanhazstring

Bug Report

SubjectDetails
Rector versione.g. v0.12.19 (invoke vendor/bin/rector --version)

Running any command for rector produces the following error:

bin/php vendor/bin/rector --version
[ERROR] Cannot autowire service "Rector\Doctrine\NodeAnalyzer\MethodCallNameOnTypeResolver": argument "$simpleCallableNodeTraverser" of method "__construct()" references class "Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser" but no such service exists.

Minimal PHP Code Causing Issue

Running a symfony 5.4 application with php8.1 using composer-bin-plugin composer 2.3.3

Expected Behaviour

Rector should work

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions