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

Remove dependency on laminas-crypt #251

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Nov 1, 2023

Instead of requiring laminas-crypt, call hash_hmac directly.

A few psalm issues have been base-lined because we can't add native types without breaking BC. Also, some defensive conditions contradict doc-block types.

Subtle potential BC break here is that an exception will now be thrown if the password is empty|null, whereas previously, it would likely have been a type error.

Also see: laminas/laminas-crypt#32

Instead of requiring laminas-crypt, call `hash_hmac` directly.

A few psalm issues have been base-lined because we can't add native types without breaking BC. Also, some defensive conditions contradict doc-block types.

Subtle potential BC break here is that an exception will now be thrown if the password is empty|null, whereas previously, it would likely have been a type error.

Signed-off-by: George Steel <[email protected]>
@Slamdunk
Copy link
Contributor

Slamdunk commented Nov 2, 2023

Excellent work 💪

Thank you @gsteel

@Slamdunk Slamdunk added this to the 2.24.0 milestone Nov 2, 2023
@Slamdunk Slamdunk merged commit a622cc2 into laminas:2.24.x Nov 2, 2023
9 checks passed
@gsteel gsteel deleted the remove-laminas-crypt-dependency branch November 2, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants