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 opensslcertificate #8661

Closed
imdhemy opened this issue Nov 5, 2022 · 5 comments

Comments

@imdhemy
Copy link

imdhemy commented Nov 5, 2022

The openssl_x509_verify function throws the following exception when scanned with psalm:

░Uncaught Exception: InvalidArgumentException Could not get class storage for opensslcertificate
Emitted in vimeo/psalm/src/Psalm/Internal/Provider/ClassLikeStorageProvider.php:46

.
.
.

(Psalm 4.29.0@7ec5ffbd5f68ae03782d7fd33fff0c45a69f95b3 crashed due to an uncaught Throwable)

Q A
PHP version 7.4
Installed PHP 8.1
With cache happens with --no-cache
Psalm 4.29.0
Reproduce link https://psalm.dev/r/bbaf73ccc1
@orklah
Copy link
Collaborator

orklah commented Nov 6, 2022

Could you check if you also have the issue with the beta version of Psalm 5 please?

@imdhemy
Copy link
Author

imdhemy commented Nov 6, 2022

Yes, Psalm 5 beta version has the same issue.

-- EDIT --

I'm not sure, but it may be related to the openssl extension configuration not Psalm.

The code run with no problems.

@orklah
Copy link
Collaborator

orklah commented Nov 6, 2022

This issue is actually a duplicate of #7100 that I forgot about. There's a few interesting facts there so I'll close this one

@orklah orklah closed this as completed Nov 6, 2022
@orklah
Copy link
Collaborator

orklah commented Nov 6, 2022

Also, this should be fixed by #8677

@imdhemy
Copy link
Author

imdhemy commented Nov 6, 2022

It works 🎉... Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants