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

Fix PHP 8.2+ deprecation warning #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

2ndkauboy
Copy link

@2ndkauboy 2ndkauboy commented Mar 22, 2024

When using this library in combination with PHP 8.2, a deprecation for the usage of the deprecated string interpolation is show:

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/brightnucleus/settings/src/Settings.php on line 89
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/brightnucleus/settings/src/Settings.php on line 90
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/brightnucleus/settings/src/Settings.php on line 91

This commit fixes the issue by changing the dynamic string interpolation to a variant, that works with all PHP versions.

https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated
https://3v4l.org/fCbaC

When using this library in combination with PHP 8.2, a deprecation for the
usage of the deprecated string interpolation is show.

This commit fixes the issue by changing the dynamic string interpolation
to a variant, that works with all PHP versions.
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.

1 participant