1 | <?php namespace Arcanesoft\Auth\Http\Requests\Admin\Profile; |
||
11 | class UpdatePasswordRequest extends FormRequest |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Main Methods |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | /** |
||
18 | * Determine if the user is authorized to make this request. |
||
19 | * |
||
20 | * @return bool |
||
21 | */ |
||
22 | public function authorize() |
||
29 | |||
30 | /** |
||
31 | * Get the validation rules that apply to the request. |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | public function rules() |
||
42 | |||
43 | /** |
||
44 | * Set custom messages for validator errors. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public function messages() |
||
55 | |||
56 | /* ----------------------------------------------------------------- |
||
57 | | Other Methods |
||
58 | | ----------------------------------------------------------------- |
||
59 | */ |
||
60 | |||
61 | /** |
||
62 | * Get the validated data. |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | public function getValidatedData() |
||
70 | } |
||
71 |
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: