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; }
Applied Rules:
Not a change you expect?
rector.php