Skip to content

Assert\Choice values are removed with PHP74 set #2721

@benr77

Description

@benr77
Subject Details
Rector version 0.6.11
PHP version 7.4
Full Command bin/rector process src --set php74

Current Behaviour

The PHP74 set is removing values from Assert\Choice() constraint annotations

     /**
-     * @var string
      *
-     * @Assert\Choice({"sales_and_management", "management_only"})
+     * @Assert\Choice
      */

Expected Behaviour

     /**
-     * @var string
      */

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