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

CS/QA: rename function parameters #174

Merged
merged 1 commit into from
May 3, 2021
Merged

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented May 3, 2021

Context

  • Improved compatibility for PHP 8.0.

Summary

This PR can be summarized in the following changelog entry:

  • Improved compatibility for PHP 8.0.

Relevant technical choices:

CS/QA: rename a function parameter

... to prevent using reserved keywords as a parameter names.

While this isn't forbidden, in PHP 8.0+ with named parameters, this can lead to very confusing code, so better to use another name.

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • N/A This PR does not contain functional changes. If the build passes, we're good.

... to prevent using reserved keywords as a parameter names.

While this isn't forbidden, in PHP 8.0+ with named parameters, this can lead to very confusing code, so better to use another name.
@jrfnl jrfnl added this to the 4.2 milestone May 3, 2021
@jrfnl jrfnl merged commit 5522ece into develop May 3, 2021
@jrfnl jrfnl deleted the JRF/QA/parameter-renames branch May 3, 2021 21:48
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.

1 participant