Commit 89f228b
Code Modernization: Rename parameters that use reserved keywords in
While using reserved PHP keywords as parameter name labels is allowed, in the context of function calls using named parameters in PHP 8.0+, this will easily lead to confusion. To avoid that, it is recommended not to use reserved keywords as function parameter names.
This commit renames the `$match` parameter to `$matches` in shortcode image tests.
Note: This is enforced by WPCS 3.0.0.
Follow-up to [56693].
See #58831.
git-svn-id: https://develop.svn.wordpress.org/trunk@56694 602fd350-edb4-49c9-b593-d223f7449a82phpunit/tests/media.php.1 parent 99a2b31 commit 89f228b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5162 | 5162 | | |
5163 | 5163 | | |
5164 | 5164 | | |
5165 | | - | |
5166 | | - | |
| 5165 | + | |
| 5166 | + | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | 5169 | | |
| |||
0 commit comments