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

Fix openssl_seal()'s $iv parameter #624

Merged
merged 1 commit into from
Aug 15, 2021
Merged

Conversation

jlherren
Copy link
Contributor

This was incorrectly added in #327.

The implementation of openssl_seal() shows that while the $iv parameter is briefly checked, its value is never used. The check is only to verify its presence, since it does not make sense to encrypt and then throw away the IV.

This resulted in this perfectly fine code being flagged.

The $iv parameter is an output-only parameter, the value passed in is not used.
@ondrejmirtes ondrejmirtes merged commit 853ef3f into phpstan:master Aug 15, 2021
@ondrejmirtes
Copy link
Member

Thank you!

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