File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,31 @@ Priority of the two-factor authenticator has changed from `0` to `-100`. Please
1010is still working fine, especially when you're using custom (non-official) authenticators. You might need to adjust
1111the 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+ // Attribute
20+ #[UserTotpCode(['message': 'The authentication code is invalid'])]
21+ public string $code;
22+
23+ // Programmatic
24+ new UserTotpCode(['message': 'The authentication code is invalid'])
25+ ```
26+
27+ After:
28+
29+ ``` php
30+ // Attribute
31+ #[UserTotpCode(message: 'The authentication code is invalid')]
32+ public string $code;
33+
34+ // Programmatic
35+ new UserTotpCode(message: 'The authentication code is invalid')
36+ ```
37+
1338
14396.x to 7.x
1540----------
You can’t perform that action at this time.
0 commit comments