Skip to content

Fatal PHP Error with api-platform #12019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
symfonyaml opened this issue Nov 12, 2024 · 3 comments
Closed

Fatal PHP Error with api-platform #12019

symfonyaml opened this issue Nov 12, 2024 · 3 comments

Comments

@symfonyaml
Copy link

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

Copy link

mergeable bot commented Nov 12, 2024

This bug report is missing a link to reproduction at phpstan.org/try.

It will most likely be closed after manual review.

@ondrejmirtes
Copy link
Member

There's already a PR to fix that in api-platform/core: api-platform/core#6789

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants