Skip to content

Commit

Permalink
docs: add doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 12, 2023
1 parent 1987c40 commit dedefaf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions system/Validation/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ public function run(?array $data = null, ?string $group = null, ?string $dbGroup
* Runs the validation process, returning true or false
* determining whether validation was successful or not.
*
* @param array|bool|float|int|object|string|null $value
* @param array|string $rule
* @param string[] $errors
* @param array|bool|float|int|object|string|null $value The data to validate.
* @param array|string $rule The validation rules.
* @param string[] $errors The custom error message.
*/
public function check($value, $rule, array $errors = []): bool
{
Expand Down Expand Up @@ -451,7 +451,8 @@ public function withRequest(RequestInterface $request): ValidationInterface
* 'rule' => 'message',
* ]
*
* @param array|string $rules
* @param array|string $rules The validation rules.
* @param array $errors The custom error message.
*
* @return $this
*
Expand Down

0 comments on commit dedefaf

Please sign in to comment.