Skip to content

dollar brace string interpolation is not corrected with LevelSetList::UP_TO_PHP_82 #8525

@divinity76

Description

@divinity76

Bug Report

Subject Details
Rector version 1.0.2

dollar brace string interpolation ("${variable_name}") has been deprecated in PHP8.2, rector should fix it but does not. for the RFC see https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation

Minimal PHP Code Causing Issue

https://getrector.com/demo/7ce9638f-53db-4d03-9554-ea31616812e2

Expected Behaviour

The code "${v}" should be changed to "{$v}" with >= \Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_82

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions