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