Skip to content

Commit 95ecdc1

Browse files
committed
docs: update doc comments
1 parent e25fe07 commit 95ecdc1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Config/Auth.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ class Auth extends BaseConfig
203203
* The validation rules for username
204204
* --------------------------------------------------------------------
205205
*
206-
* @var string[]
206+
* Do not use string rules like `required|valid_email`.
207+
*
208+
* @var array<string, array<int, string>|string>
207209
*/
208210
public array $usernameValidationRules = [
209211
'label' => 'Auth.username',
@@ -220,7 +222,9 @@ class Auth extends BaseConfig
220222
* The validation rules for email
221223
* --------------------------------------------------------------------
222224
*
223-
* @var string[]
225+
* Do not use string rules like `required|valid_email`.
226+
*
227+
* @var array<string, array<int, string>|string>
224228
*/
225229
public array $emailValidationRules = [
226230
'label' => 'Auth.email',

0 commit comments

Comments
 (0)