-
Notifications
You must be signed in to change notification settings - Fork 145
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
Argument 2 passed to Safe\openssl_sign() must be of the type string, null given #86
Comments
Ok, found a way. The PHPStan function map tells us if a parameter passed by reference (like $signature) is supposed to be used for read and write or for write only. Typically, PHPStan's functionMap.php
The "w_" in the file denotes the "write only" mode. |
Thank you very much, I will try it out. |
Fixed in #91 |
Hello!
I have following code:
And i get following error:
Argument 2 passed to Safe\openssl_sign() must be of the type string, null given
I can get this fixed by adding
$signature = ''
before callingopenssl_sign()
. I understand the error, but i expected (and it worked before using Safe package), that$signature
variable will get created 😄The text was updated successfully, but these errors were encountered: