Skip to content

CompleteDynamicPropertiesRector: Produces broken code when using late static bindings #9195

@seanjohnson08

Description

@seanjohnson08

Bug Report

Subject Details
Rector version 2.0.16

CompleteDynamicPropertiesRector creates a syntax error when an assignment is made using a late static binding constant as the key.

Minimal PHP Code Causing Issue

https://getrector.com/demo/42658105-dc72-482a-8985-d438a3957fdf

Expected Behaviour

CompleteDynamicPropertiesRector should not add properties referenced by a static constant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions