Skip to content

Rector built-in nikic/php-parser overrides project dependency #9438

@vjik

Description

@vjik

Bug Report

Subject Details
Rector version v2.2.3

There is "nikic/php-parser": "^4.10" dependency in my project, but rector built-in dependency overrides it. Error throws:

Error: Call to undefined method PhpParser\ParserFactory::create()

Minimal PHP Code Causing Issue

(new ParserFactory())->create(ParserFactory::PREFER_PHP7)

Expected Behaviour

No errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions