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 a function parameter #107

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 a reserved keyword as a parameter name.

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 a reserved keyword as a parameter name.

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 Next release milestone May 3, 2021
@jrfnl jrfnl merged commit 896b485 into develop May 3, 2021
@jrfnl jrfnl deleted the JRF/QA/parameter-rename branch May 3, 2021 00:50
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.

None yet

1 participant