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

Outdated signature of openssl_x509_parse() #6358

Closed
ThomasLandauer opened this issue Aug 23, 2021 · 2 comments · Fixed by #6375
Closed

Outdated signature of openssl_x509_parse() #6358

ThomasLandauer opened this issue Aug 23, 2021 · 2 comments · Fixed by #6375

Comments

@ThomasLandauer
Copy link
Contributor

I'm getting:

ERROR: InvalidArgument - Argument 1 of openssl_x509_parse expects resource|string, OpenSSLCertificate provided

But openssl_x509_parse() has changed its signature to:

openssl_x509_parse(OpenSSLCertificate|string $certificate, bool $short_names = true): array|false

See https://www.php.net/manual/function.openssl-x509-parse.php

@psalm-github-bot
Copy link

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

@orklah
Copy link
Collaborator

orklah commented Aug 28, 2021

Thanks for reporting this!

Care to propose a PR? The change that must be made is in the files of this directory: https://github.com/vimeo/psalm/tree/master/dictionaries. Especially on PHP 8 file.

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

Successfully merging a pull request may close this issue.

2 participants