Skip to content

PHPStan PHPDocParser missing constructor attribute #6795

Description

@dbotezat

API Platform version(s) affected: 4.0.8

Description

[critical] Uncaught Error: Too few arguments to function PHPStan\PhpDocParser\Parser\ConstExprParser::__construct(), 0 passed in /DriversCheck/dev/projects/beed-backend/vendor/api-platform/core/src/Metadata/Resource/Factory/PhpDocResourceMetadataCollectionFactory.php on line 62 and exactly 1 expected

currently using phptan v1.12

How to reproduce

create new ymfony project usinc smyfony cli
add api platform via composer

Possible Solution

repalce with
$phpDocParser = new PhpDocParser(new ParserConfig(),new TypeParser(new ConstExprParser()), new ConstExprParser());
Additional Context

Error screenshot
image

Composer requirements screenshot
image

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions