Skip to content

Getting "Could not process file due to PHPStan\Reflection\ClassReflection::getMethod(): Argument #2 ($scope) must be of type" #6721

@grebban-edwin

Description

@grebban-edwin

Question

 [ERROR] Could not process "app/Http/Resources/Frontend/OrderConfirmResource.php" file, due to:                         
         "PHPStan\Reflection\ClassReflection::getMethod(): Argument #2 ($scope) must be of type                         
         PHPStan\Reflection\ClassMemberAccessAnswerer, null given, called in                                            
         vendor/rector/rector/packages/NodeCollector/NodeAnalyzer/ArrayCallableMethodMatcher.php:146". On line: 308     
                                                                                                                        

Script vendor/bin/rector process --ansi --dry-run handling the rector event returned with error code 1

Started getting this error after running a composer update recently.

Rector version: 0.11.56
PHPStan Version: 0.12.99

Not really sure how to debug this

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