1 | <?php |
||
11 | class Validator extends \Valitron\Validator |
||
12 | { |
||
13 | /** |
||
14 | * @return bool |
||
15 | * @throws ValidationException |
||
16 | */ |
||
17 | 5 | public function validate(): bool |
|
24 | |||
25 | /** |
||
26 | * @param array $data |
||
27 | * @return static |
||
28 | */ |
||
29 | 4 | public static function create(array $data = []) |
|
33 | |||
34 | /** |
||
35 | * @param array $rules |
||
36 | * @param array $messages |
||
37 | */ |
||
38 | 6 | public function rules($rules, $messages = []) |
|
57 | } |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.