Skip to content

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

Merged
gmazzap merged 1 commit intomasterfrom
feature/rename-param-names
May 1, 2023
Merged

WP Helper functions: ensure parameter names are in line with WP Core#136
gmazzap merged 1 commit intomasterfrom
feature/rename-param-names

Conversation

@jrfnl
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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.

2 participants