| 1 | <?php namespace Arcanesoft\Auth\Http\Requests\Admin\Users; |
||
| 9 | class UpdateUserRequest extends UserFormRequest |
||
| 10 | { |
||
| 11 | /* ------------------------------------------------------------------------------------------------ |
||
| 12 | | Main Functions |
||
| 13 | | ------------------------------------------------------------------------------------------------ |
||
| 14 | */ |
||
| 15 | /** |
||
| 16 | * Determine if the user is authorized to make this request. |
||
| 17 | * |
||
| 18 | * @return bool |
||
| 19 | */ |
||
| 20 | public function authorize() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get the validation rules that apply to the request. |
||
| 27 | * |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | public function rules() |
||
| 42 | } |
||
| 43 |
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: