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
Wrong type on openssl_ functions #380
Comments
Hey Pyrou! I'm pretty sure this is due to the change of type between PHP 7 and PHP 8 (most "resources" have been replaced with PHP classes). |
this should be easy to fix, i will just override the types from phpstan |
I keep this issue onpen in case I missed some functions |
This issue is still unfixed! And I am failing to use "laravel-notification-channels/webpush" package because of this issue! |
It has. Months ago with 2.3 |
According to PHP documentation, openssl_x509_read accept
OpenSSLCertificate|string
and returnOpenSSLCertificate|false
.On generated Safe wrapper, types are currently
ressource|string
andresource
, making static analyzer fail when passing and OpenSSLCertificate instance, or when expecting OpenSSLCertificate.Other openssl_ functions seems also affected, like openssl_verify, openssl_x509_fingerprint, openssl_x509_export, openssl_x509_export_to_file, openssl_spki_new etc..
The text was updated successfully, but these errors were encountered: