docs change and cs-fix

This commit is contained in:
s17113225 2022-09-26 21:13:25 +08:00
parent df5d7fdf37
commit 220f55cedd
No known key found for this signature in database
GPG Key ID: 74731FC11FA38920
2 changed files with 3 additions and 4 deletions

View File

@ -209,7 +209,7 @@ class Rules
} }
/** /**
* @param object|array|string|int|float|null $str * @param array|bool|float|int|object|string|null $str
*/ */
public function required($str = null): bool public function required($str = null): bool
{ {

View File

@ -31,9 +31,8 @@ interface ValidationInterface
* Check; runs the validation process, returning true or false * Check; runs the validation process, returning true or false
* determining whether or not validation was successful. * determining whether or not validation was successful.
* *
* @param object|array|string|int|float|bool|null $value Value to validation. * @param object|array|string|int|float|bool|null $value Value to validate.
* @param string $rule Rule. * @param string[] $errors
* @param string[] $errors Errors.
* *
* @return bool True if valid, else false. * @return bool True if valid, else false.
*/ */