Skip to content

Fatal PHP Error with api-platform #12019

Description

@symfonyaml

Bug report

Problem

When I create a new Symfony project with PHPStan and Api-Platform I have the following error while clearing the symfony cache:

Uncaught Error: Too few arguments to function PHPStan\PhpDocParser\Parser\ConstExprParser::__construct(),
0 passed in vendor/api-platform/metadata/Resource/Factory/PhpDocResourceMetadataCollectionFactory.php on line 62
and exactly 1 expected

Reproduce

composer  create-project --quiet --no-progress --no-audit symfony/skeleton example
cd example
com req --quiet phpstan/phpstan
symfony composer require api

Code snippet that reproduces the problem

No response

Expected output

No expected output required for this issue.

Did PHPStan help you today? Did it make you happy in any way?

No response

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