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

Third parameter of sodium_base642bin is optional. #644

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

tehbeard
Copy link
Contributor

Fixes issue where:

$text = sodium_base642bin($encodedText, SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING);

is flagged with error: "Function sodium_base642bin invoked with 2 parameters, 3 required."

Correct signature is: sodium_base642bin(string $string, int $id, string $ignore = ""): string

@ondrejmirtes ondrejmirtes merged commit 7906779 into phpstan:master Aug 25, 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