Skip to content

[PHP 8.2] Fix deprecated ${var} string interpolation patterns#5154

Merged
weitzman merged 1 commit intodrush-ops:11.xfrom
Ayesh:php82/dollar-string-deprecation
May 26, 2022
Merged

[PHP 8.2] Fix deprecated ${var} string interpolation patterns#5154
weitzman merged 1 commit intodrush-ops:11.xfrom
Ayesh:php82/dollar-string-deprecation

Conversation

@Ayesh
Copy link
Contributor

@Ayesh Ayesh commented May 25, 2022

PHP 8.2 deprecates string interpolation patterns that place the dollar sign outside the curly braces. This fixes such patterns by replacing them with proper curly braced patterns.

Fix: Drush\Psysh\DrushHelpCommand::execute()

Reference:

PHP 8.2 deprecates string interpolation patterns that place the
dollar sign outside the curly braces. This fixes such patterns
by replacing them with proper curly braced patterns.

Fix: `Drush\Psysh\DrushHelpCommand::execute()`

Reference:
 - [PHP.Watch: `${var}` string interpolation deprecated](https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated)
 - [wiki.php.net RFC](https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation)
@Ayesh Ayesh requested a review from damiankloip as a code owner May 25, 2022 19:03
@weitzman weitzman merged commit b2c6634 into drush-ops:11.x May 26, 2022
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