Skip to content

PHPStan\Analyser\MutatingScope constructor error #2580

@ghostika

Description

@ghostika
Subject Details
Rector version 0.6.x-dev@9a330e2
PHP version 7.3.2-3
Full Command vendor/bin/rector process bin src --set symfony41 --dry-run

Current Behaviour

 [ERROR] Could not process ".../Model/Contact.php" file, due to:
         "Argument 3 passed to PHPStan\Analyser\MutatingScope::__construct() must be an instance of
         PHPStan\Type\DynamicReturnTypeExtensionRegistry, instance of Rector\PhpParser\Printer\BetterStandardPrinter
         given, called in
         phar:///var/www/symfony/vendor/rector/rector-prefixed/rector/packages/NodeTypeResolver/src/PHPStan/Scope/ScopeF
         actory.php on line 41".

I just installed rector/rector-prefixed and tried to run the symfony41 update and got these error and also rector wants to remove all the namespace import, e.g.:

-use Psr\Log\LoggerInterface;
+ LoggerInterface;

Maybe this is connected to the main error.

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