1 | <?php |
||
10 | abstract class BaseValidator extends LaravelValidator |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $keyName; |
||
16 | |||
17 | /** |
||
18 | * Get Validator |
||
19 | * |
||
20 | * @return \Illuminate\Validation\Factory |
||
21 | */ |
||
22 | 1 | public function getValidator() |
|
26 | |||
27 | /** |
||
28 | * Set Key Name |
||
29 | * |
||
30 | * @param Key $keyName Key Name |
||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | 1 | public function setKeyName($keyName) |
|
38 | |||
39 | /** |
||
40 | * Get rule for validation by action ValidatorInterface::RULE_CREATE or ValidatorInterface::RULE_UPDATE |
||
41 | * |
||
42 | * Default rule: ValidatorInterface::RULE_CREATE |
||
43 | * |
||
44 | * @param null $action |
||
45 | * @return array |
||
46 | */ |
||
47 | 1 | public function getRules($action = null) |
|
57 | |||
58 | /** |
||
59 | * Parser Validation Rules |
||
60 | * |
||
61 | * @param Unknown $rules Rules |
||
62 | * @param null $id Null Id |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | 1 | protected function parserValidationRules($rules, $id = null) |
|
107 | } |
||
108 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..