Skip to content

PHP-Parser not in direct dependencies, PHP-Parser > 5.0 is incompatible #273

@danbka33

Description

@danbka33

Describe the bug

A new release of PHP-Parser has recently been released.
https://github.com/nikic/PHP-Parser/releases/tag/v5.0.0

In the changelog you can see that the "create" method that was used has been removed. This method is used in this file:

$parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7);

This package is not listed in direct dependencies, so it is allowed to install version 5, which is not compatible.

Options

  1. Add version 4 to direct dependencies.
  2. Go to version 5, add this to direct dependencies and fix the creation method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions