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

Fix variable names to match ext/sodium #152

Merged
merged 1 commit into from
Sep 26, 2022
Merged

Conversation

paragonie-security
Copy link
Contributor

This is technically an API break for PHP 8 projects. However, this polyfill always targeted PHP 5, 7.0, and 7.1. You shouldn't need it on 7.2+.

The end result of this change is that you should be able to write code that uses named parameters on PHP 8 and have it work regardless of ext/sodium being installed or not (provided you import sodium_compat via composer).

Additionally, we include lib/ in the psalm checks (if applicable).

This will need a new minor version (v1.19.0).

This is technically an API break for PHP 8 projects.
However, this polyfill always targeted PHP 5, 7.0, and 7.1. You shouldn't need it on 7.2+.

The end result of this change is that you should be able to write code that uses named parameters on PHP 8 and have it work regardless of ext/sodium being installed or not (provided you import sodium_compat via composer).

Additionally, we include lib/ in the psalm checks (if applicable).

This will need a new minor version (v1.19.0).
@paragonie-security paragonie-security merged commit 215ae42 into master Sep 26, 2022
@paragonie-security paragonie-security deleted the php72-param-names branch September 26, 2022 03:14
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.

1 participant