Skip to content

PropertyInfo PhpStanExtractor is incompatible with version 2.0 of phpstan/phpdoc-parser #58796

Closed
@Steveb-p

Description

@Steveb-p

Symfony version(s) affected

5.4, 6.4, 7.2

Description

A new version of PHPStan's parser has been released (2.0.0).

Installation with 2.0.0 causes issues with the following code:

$this->phpDocParser = new PhpDocParser(new TypeParser(new ConstExprParser()), new ConstExprParser());

Because ConstExprParser now has required constructor arguments.

Since this is an optional dependency, how are we going to handle it?

How to reproduce

In my case it was any project using symfony/serializer-pack. Since this also installed the phpstan/phpdoc-parser with any version, I received 2.0.0.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions