Skip to content

Commit 40d5fa5

Browse files
[Validator] Fix constraints deprecations
1 parent a46bf37 commit 40d5fa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Validator/Constraints/UniqueEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ public function __construct(
6363
?array $options = null,
6464
) {
6565
if (\is_array($fields) && \is_string(key($fields)) && [] === array_diff(array_keys($fields), array_merge(array_keys(get_class_vars(static::class)), ['value']))) {
66-
trigger_deprecation('symfony/validator', '7.2', 'Passing an array of options to configure the "%s" constraint is deprecated, use named arguments instead.', static::class);
66+
trigger_deprecation('symfony/validator', '7.3', 'Passing an array of options to configure the "%s" constraint is deprecated, use named arguments instead.', static::class);
6767

6868
$options = array_merge($fields, $options ?? []);
6969
} else {
7070
if (\is_array($options)) {
71-
trigger_deprecation('symfony/validator', '7.2', 'Passing an array of options to configure the "%s" constraint is deprecated, use named arguments instead.', static::class);
71+
trigger_deprecation('symfony/validator', '7.3', 'Passing an array of options to configure the "%s" constraint is deprecated, use named arguments instead.', static::class);
7272
} else {
7373
$options = [];
7474
}

0 commit comments

Comments
 (0)