Skip to content

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

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.

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