Skip to content

Commit df5d7fd

Browse files
committed
docs: change doc type "mixed" to others type in Rule, Validation, ValidationInterface class
1 parent 6da8898 commit df5d7fd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

system/Validation/Rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function not_in_list(?string $value, string $list): bool
209209
}
210210

211211
/**
212-
* @param mixed $str
212+
* @param object|array|string|int|float|null $str
213213
*/
214214
public function required($str = null): bool
215215
{

system/Validation/Validation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function run(?array $data = null, ?string $group = null, ?string $dbGroup
183183
* Runs the validation process, returning true or false
184184
* determining whether validation was successful or not.
185185
*
186-
* @param mixed $value
186+
* @param object|array|string|int|float|bool|null $value
187187
* @param string[] $errors
188188
*/
189189
public function check($value, string $rule, array $errors = []): bool

system/Validation/ValidationInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function run(?array $data = null, ?string $group = null): bool;
3131
* Check; runs the validation process, returning true or false
3232
* determining whether or not validation was successful.
3333
*
34-
* @param mixed $value Value to validation.
34+
* @param object|array|string|int|float|bool|null $value Value to validation.
3535
* @param string $rule Rule.
3636
* @param string[] $errors Errors.
3737
*

0 commit comments

Comments
 (0)