Run Rector on your code to see what it can do for you:

 {
     #[Assert\Sequentially(
         constraints: [
-            new Assert\Choice(
-                options: ['New York', 'Berlin', 'Tokyo'],
-                message: 'Choose a valid genre.'
-            ),
+            new Assert\Choice(),
             new Assert\Count(min: 1),
         ],
     )]
     public string $city;
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: e30087 - released at 2026-04-23 17:48