Skip to content

Commit 57ebc80

Browse files
committed
Upgrade note on validator constraints
1 parent 6c3f73c commit 57ebc80

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

UPGRADE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ Priority of the two-factor authenticator has changed from `0` to `-100`. Please
1010
is still working fine, especially when you're using custom (non-official) authenticators. You might need to adjust
1111
the priority of your custom authenticator.
1212

13+
When using the validator constraints `UserTotpCode` or `UserGoogleTotpCode` under Symfony 8, you can no longer pass the
14+
options as an associative array. Use constructor arguments instead. You can use named arguments.
15+
16+
Before:
17+
18+
```php
19+
new UserTotpCode(['message': 'The authentication code is invalid'])
20+
```
21+
22+
After:
23+
24+
```php
25+
new UserTotpCode(message: 'The authentication code is invalid')
26+
```
27+
1328

1429
6.x to 7.x
1530
----------

0 commit comments

Comments
 (0)