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

WP Helper functions: ensure parameter names are in line with WP Core #136

Merged
merged 1 commit into from
May 1, 2023

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented May 1, 2023

... for compatibility with code under test using PHP 8.0+ function calls with named arguments.

For some of these functions, WP has renamed the parameter(s) over the past year or so, for some, the names were never in line.

Even though WP Core doesn't necessarily officially support the use of named parameters in function calls, that (of course) won't stop people from using them and their tests should not break on that due to BrainMonkey not being in line with WP for parameter names.

... for compatibility with code under test using PHP 8.0+ function calls with named arguments.

For some of these functions, WP has renamed the parameter(s) over the past year or so, for some, the names were never in line.

Even though WP Core doesn't necessarily officially _support_ the use of named parameters in function calls, that (of course) won't stop people from using them and their tests should not break on that due to BrainMonkey not being in line with WP for parameter names.
@jrfnl jrfnl added the bug label May 1, 2023
@jrfnl jrfnl added this to the 2.x Next milestone May 1, 2023
@jrfnl jrfnl requested a review from gmazzap May 1, 2023 10:44
@gmazzap gmazzap merged commit 26b83e9 into master May 1, 2023
@gmazzap gmazzap deleted the feature/rename-param-names branch May 1, 2023 16:33
@gmazzap
Copy link
Collaborator

gmazzap commented May 1, 2023

Thank you @jrfnl!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants