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

PHP 8.2: Deprecated ${} string interpolation. #34

Closed
kevin-appelt opened this issue Jan 12, 2023 · 4 comments
Closed

PHP 8.2: Deprecated ${} string interpolation. #34

kevin-appelt opened this issue Jan 12, 2023 · 4 comments

Comments

@kevin-appelt
Copy link

${var} String Interpolation Deprecated
PHP has always supported string variable interpolation with "foo {$bar}" pattern, and along with an alternative syntax that the dollar sign is placed outside the curly braces (e.g. "foo ${bar}").
In PHP 8.2, the alternative syntax of placing the dollar sign outside the curly braces is deprecated.

Deprecated in PHP 8.2 Recommended syntax for PHP 8.2
Hello ${name}; Hello {$name}
echo "Hello ${$var}"; echo "Hello {$var}";

Source: https://php.watch/versions/8.2

For detailed information see PHP RFC: https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation

@rkoopmans
Copy link
Contributor

Thanks for your report, we have prepared a change!

@kevin-appelt
Copy link
Author

@rkoopmans Thanks for the change. LGTM and I am looking forward for the release. :)

@kevin-appelt
Copy link
Author

@rkoopmans AFAICS you merged the changes to master and changed the bumped the version in the code, but there is a tag missing to get the release f.e. via packagist.

Mind to add the 1.6.1 tag? :)

If done, this issues can be closed 👍

@rkoopmans
Copy link
Contributor

hello Kevin, This is done now ;-)

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

No branches or pull requests

2 participants