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

Hash functions signatures #6416

Closed
Tracked by #6395
weirdan opened this issue Sep 4, 2021 · 0 comments · Fixed by #6446
Closed
Tracked by #6395

Hash functions signatures #6416

weirdan opened this issue Sep 4, 2021 · 0 comments · Fixed by #6446
Labels
easy problems Issues that can be fixed without background knowledge of Psalm good first issue Help wanted internal stubs/callmap
Milestone

Comments

@weirdan
Copy link
Collaborator

weirdan commented Sep 4, 2021

The following functions have changed signatures, to support an optional $options argument:

  • function hash(string $algo, string $data, bool $binary = false, array $options = []): string|false {}
  • function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): string|false {}
  • function hash_init(string $algo, int $flags = 0, string $key = "", array $options = []): HashContext {}

The additional $options argument can be used to pass algorithm specific data.

Guide to editing callmaps: Editing callmaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy problems Issues that can be fixed without background knowledge of Psalm good first issue Help wanted internal stubs/callmap
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant