You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Activity
mergeable commentedon 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 commentedon Nov 12, 2024
There's already a PR to fix that in api-platform/core: api-platform/core#6789
github-actions commentedon Dec 14, 2024
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.