Perform the duplicate check of parameter names already on initial creation

This fixes issue #568
This commit is contained in:
Jan Böhmer 2024-04-28 19:38:39 +02:00
parent dfe4568991
commit b70d74ae4b
4 changed files with 12 additions and 2 deletions

View file

@ -34,7 +34,7 @@ class UniqueObjectCollection extends Constraint
self::IS_NOT_UNIQUE => 'IS_NOT_UNIQUE',
];
public string $message = 'This collection should contain only unique elements.';
public string $message = 'This value is already used.';
public $normalizer;
/**