| 1 | <?php namespace Arcanesoft\Auth\Validators; |
||
| 11 | class UserValidator |
||
| 12 | { |
||
| 13 | /* ------------------------------------------------------------------------------------------------ |
||
| 14 | | Validation Functions |
||
| 15 | | ------------------------------------------------------------------------------------------------ |
||
| 16 | */ |
||
| 17 | /** |
||
| 18 | * Validate the user current/old password. |
||
| 19 | * |
||
| 20 | * @param string $attribute |
||
| 21 | * @param string $value |
||
| 22 | * @param array $parameters |
||
| 23 | * @param \Illuminate\Validation\Validator $validator |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | public function validateUserPassword($attribute, $value, $parameters, $validator) |
||
| 37 | } |
||
| 38 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: