Skip to content
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

Uncaught Exception: InvalidArgumentException Could not get class storage for doctrine\dbal\dbalexception #7524

Closed
inlb opened this issue Jan 30, 2022 · 5 comments

Comments

@inlb
Copy link

inlb commented Jan 30, 2022

psalm 4.19.0
weirdan/doctrine-psalm-plugin v2.2.0
Symfony 6.0.3
PHP 8.1

> ./vendor/bin/psalm --show-info=true
Target PHP version: 8.1 (inferred from composer.json)
Scanning files...
Analyzing files...

░░░░░░░░░░░░░░░░░░░░░░░░░░Uncaught Exception: InvalidArgumentException Could not get class storage for doctrine\dbal\dbalexception
Emitted in /Users/dmitriyrybin/PhpstormProjects/.../app/api/vendor/vimeo/psalm/src/Psalm/Internal/Provider/ClassLikeStorageProvider.php:46
Stack trace in the forked worker:
#0 /Users/dmitriyrybin/PhpstormProjects/.../app/api/vendor/vimeo/psalm/src/Psalm/Internal/Codebase/ClassLikes.php(628): Psalm\Internal\Provider\ClassLikeStorageProvider->get('Doctrine\\DBAL\\D...')
...

If I comment <pluginClass class="Weirdan\DoctrinePsalmPlugin\Plugin"/> in psalm.xml everything works fine

@psalm-github-bot
Copy link

Hey @inlb, can you reproduce the issue on https://psalm.dev ?

@orklah
Copy link
Collaborator

orklah commented Jan 30, 2022

Hi! Thanks for reporting. It's most likely related to #7518. We're working on it. You should be able to use 4.18 in the meantime

@inlb
Copy link
Author

inlb commented Jan 30, 2022

Same exception with 4.18 and weirdan/doctrine-psalm-plugin v2.2.0 and v2.1.0. Only downgrading to v2.0.1 resolves the problem

@inlb
Copy link
Author

inlb commented Jan 30, 2022

psalm 4.19 with weirdan/doctrine-psalm-plugin v2.0.1 also works without exception

@orklah
Copy link
Collaborator

orklah commented Jan 30, 2022

Oh, so it's not the same issue then. Could you open an issue on doctrine psalm plugin? It seems to be the culprit

@orklah orklah closed this as completed Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants