| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | public function register(): void |
||
| 54 | { |
||
| 55 | \Validator::extend($this->getValidationRule(), function ($attribute, $value, $parameters, $validator) { |
||
| 56 | return $this->rule($attribute, $value, $parameters, $validator); |
||
| 57 | }); |
||
| 58 | \Validator::replacer($this->getValidationRule(), 'ValidationMessages@message'); |
||
| 59 | } |
||
| 61 |
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..