Skip to content

Replace deprecated ${var} with {$var}.#213

Merged
dkotter merged 1 commit into
developfrom
fix/182-var-deprecation-warnings
May 13, 2026
Merged

Replace deprecated ${var} with {$var}.#213
dkotter merged 1 commit into
developfrom
fix/182-var-deprecation-warnings

Conversation

@peterwilsoncc
Copy link
Copy Markdown
Contributor

@peterwilsoncc peterwilsoncc commented May 13, 2026

Description of the Change

Fixes a PHP deprecation warning PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /vagrant/content/plugins/ad-refresh-control/includes/functions/core.php on line 78

Closes #182

How to test the Change

  1. Activate plugin
  2. Activate test plugin included in tests/test-plugin/e2e-test-plugin.php
  3. Enable WP_DEBUG and WP_DEBUG_DISPLAY in your wp-config file
  4. Ensure deprecation message is not shown when visiting the front end of the site.

Changelog Entry

Fixed - PHP deprecation message: Using ${var} in strings is deprecated...

Credits

Props @peterwilsoncc, @blloyd78.

Checklist:

@peterwilsoncc peterwilsoncc self-assigned this May 13, 2026
@peterwilsoncc peterwilsoncc marked this pull request as ready for review May 13, 2026 05:01
@dkotter dkotter added this to the 1.2.0 milestone May 13, 2026
@dkotter dkotter merged commit 8575b9a into develop May 13, 2026
23 checks passed
@dkotter dkotter deleted the fix/182-var-deprecation-warnings branch May 13, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using ${var} in strings is deprecated, use {$var}

2 participants