Skip to content

Cast the value to decrypt to a string to prevent type-errors #25

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

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

Firesphere
Copy link
Collaborator

both strlen and ctype_xdigit are now type-hardened expecting an explicit string. Passing in null will throw an error.

Thus, casting it to string to ensure it is a string, makes sure that PHP doesn't throw an error about the passed in value not being a string.

Resolvel #24

both `strlen` and `ctype_xdigit` are now type-hardened expecting an explicit string. Passing in `null` will throw an error.

Thus, casting it to string to ensure it is a string, makes sure that PHP doesn't throw an error about the passed in value not being a string.
@madmatt
Copy link
Owner

madmatt commented Mar 22, 2023

Thanks!

@madmatt madmatt merged commit fba6f8b into master Mar 22, 2023
@madmatt madmatt deleted the Firesphere-patch-1 branch March 22, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants