Skip to content

PHP 8.2 | Fix deprecated embedded variables in text strings #55

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

Merged

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Jul 25, 2022

PHP 8.2 will deprecate two of the four currently supported syntaxes for embedding variables in double quoted text string/heredocs.

This library contains one use of embedded variables using braces after the dollar sign ("${foo}"), which is one of the deprecated forms.

This commit fixes that.

Refs:

@jrfnl
Copy link
Contributor Author

jrfnl commented Jul 25, 2022

@sirbrillig You may also want to consider moving CI to GH Actions for a more extensive CI check, same like we did for VariableAnalysis.

PHP 8.2 will deprecate two of the four currently supported syntaxes for embedding variables in double quoted text string/heredocs.

This library contains one use of embedded variables using braces after the dollar sign (`"${foo}"`), which is one of the deprecated forms.

This commit fixes that.

Refs:
* https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
@jrfnl
Copy link
Contributor Author

jrfnl commented Oct 29, 2022

Rebased without changes to be ahead of master again.

@jrfnl jrfnl force-pushed the php-8.2/fix-deprecated-embedded-var branch from a45c884 to da83c0c Compare October 29, 2022 12:29
@sirbrillig sirbrillig merged commit 7035ef6 into sirbrillig:master Oct 30, 2022
@jrfnl jrfnl deleted the php-8.2/fix-deprecated-embedded-var branch October 30, 2022 19:11
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.

2 participants