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
fix signature for openssl_open under PHP >= 8.0 #6987
Conversation
I found these snippets: https://psalm.dev/r/d84f1672b7<?php
$k = openssl_pkey_get_private('some file', 'very secret');
openssl_open("flupp", $decoded, "foobar", $k, "RC4");
|
e539425
to
6dfbe37
Compare
I have force-pushed a new commit which fixes all In the end, I went with the long signature for that One thing: there is The existing return type was declared as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a number of nullability nitpicks, but otherwise this looks really good.
while some signatures were already updated in the past, many others were not. This commits fixes all signatures to match what the PHP manual specifies.
6dfbe37
to
323b74b
Compare
thank you very much for your additional remarks. When I went through the functions, I mostly looked at the The windows tests fail before they even start testing with some missing infrastructure to install PHP. I don't know what's going on there, but I don't think it's related to the updated call map. |
Seems to be a temporary glitch. I've restarted the job and it seems to be working now. |
Thanks! |
fixes the false
InvalidArgument
here: https://psalm.dev/r/d84f1672b7