-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix deprecated string interpolation in Analytics.php #7170
Conversation
Thank you for the PR @ridonibishi ! We'll take a look at it and provide any feedback as soon as possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes make sense, there's no need to test because the alternatives the PR provides were already in use in their previous occurrences. LGTM! And thanks for providing this fix!
@ridonibishi can you add a changelog before we merge this to the main repo? You can run |
I took the initiative and pushed the changelog and added it to the merge queue. Thank you for catching and fixing this! |
6ba6fab
Sorry - was on a band tour the past 4 days! Thanks for reviewing and patching! Godspeed! 💯 |
Fixes #7169
Changes proposed in this Pull Request
Title: Fix deprecated string interpolation in Analytics.php
Description:
This PR addresses a deprecation issue in
/var/www/html/web/app/plugins/woocommerce-payments/includes/multi-currency/Analytics.php
. The problem involves the use of${var}
for string interpolation, which is deprecated. This change replaces${var}
with the correct{$var}
format, resolving the following warnings:Testing instructions:
To test this change, follow these steps:
No tests are required because the code changes involve straightforward syntax updates to resolve deprecation warnings. These changes are low-risk and don't introduce new functionality. Visual inspection and basic validation confirm the correctness of the fix. If further testing is required:
git clone https://github.com/your-username/your-repo.git cd your-repo git checkout bug-fix
npm run changelog
to add a changelog file (ispatch
).Post merge