Skip to content

ConstraintOptionsToNamedArgumentsRector removes nested constraints #9258

@umulmrum

Description

@umulmrum

Bug Report

Subject Details
Rector version 2.1.1

Thank you for the new release, it came just an hour before I wondered if there was support for Symfony Constraint constructor deprecations.

For simple constraints the new ConstraintOptionsToNamedArgumentsRector works as expected, but nested constraints are simply removed.

Minimal PHP Code Causing Issue

https://getrector.com/demo/66f4db3c-f1d2-4d9f-8575-778bdc376ac7

Expected Behaviour

The internal constraint should be modified, not removed.

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