Skip to content

Error - Argument passed must be an instance of MethodCall, Identifier given #1356

@einenlum

Description

@einenlum

I am trying to update my Symfony2.8 project to Symfony3.0, using the docker version of rector.

Using: docker run -v $(pwd):/project rector/rector:latest process /project/src --level symfony30 --dry-run --autoload-file /project/vendor/autoload.php

I get some errors (always the same):

 [ERROR] Could not process "/project/src/App/Controller/CaptchaController.php"  
         file by "Rector\Symfony\Rector\HttpKernel\GetRequestRector", due to:   
         "Argument 1 passed to                                                  
         Rector\Symfony\Rector\HttpKernel\GetRequestRector::isGetMethodCallWithR
         equestParameters() must be an instance of                              
         PhpParser\Node\Expr\MethodCall, instance of PhpParser\Node\Identifier  
         given, called in                                                       
         /rector/packages/Symfony/src/Rector/HttpKernel/GetRequestRector.php on 
         line 166".

You can see here the full output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions