Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 26, 2022

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented May 26, 2022

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

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

This commit fixes this.

Refs:

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

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

This commit fixes this.

Refs:
* https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
@jrfnl jrfnl added the bug label May 26, 2022
@jrfnl jrfnl requested a review from sirbrillig May 26, 2022 03:57
@sirbrillig sirbrillig merged commit c3243c8 into 2.x May 26, 2022
@sirbrillig sirbrillig deleted the php-8.2/fix-deprecated-embedded-vars-in-strings branch May 26, 2022 21:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants