Skip to content

Remove dependency on laminas-crypt#251

Merged
Slamdunk merged 1 commit intolaminas:2.24.xfrom
gsteel:remove-laminas-crypt-dependency
Nov 2, 2023
Merged

Remove dependency on laminas-crypt#251
Slamdunk merged 1 commit intolaminas:2.24.xfrom
gsteel:remove-laminas-crypt-dependency

Conversation

@gsteel
Copy link
Copy Markdown
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 <george@net-glue.co.uk>
@gsteel gsteel force-pushed the remove-laminas-crypt-dependency branch from f9ada6f to 37edbe8 Compare November 1, 2023 21:56
@gsteel gsteel requested a review from Slamdunk November 1, 2023 21:57
@Slamdunk
Copy link
Copy Markdown
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
@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