1 | <?php namespace Arcanesoft\Auth\Http\Controllers\Admin; |
||
17 | class ProfileController extends AdminController |
||
18 | { |
||
19 | /* ----------------------------------------------------------------- |
||
20 | | Traits |
||
21 | | ----------------------------------------------------------------- |
||
22 | */ |
||
23 | |||
24 | use Notifyable; |
||
25 | |||
26 | /* ----------------------------------------------------------------- |
||
27 | | Properties |
||
28 | | ----------------------------------------------------------------- |
||
29 | */ |
||
30 | |||
31 | /** |
||
32 | * The authenticated user. |
||
33 | * |
||
34 | * @var \Arcanesoft\Contracts\Auth\Models\User |
||
35 | */ |
||
36 | protected $user; |
||
37 | |||
38 | /** |
||
39 | * The view namespace. |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $viewNamespace = 'auth'; |
||
44 | |||
45 | /* ----------------------------------------------------------------- |
||
46 | | Constructor |
||
47 | | ----------------------------------------------------------------- |
||
48 | */ |
||
49 | |||
50 | /** |
||
51 | * ProfileController constructor. |
||
52 | */ |
||
53 | public function __construct() |
||
60 | |||
61 | /* ----------------------------------------------------------------- |
||
62 | | Main Methods |
||
63 | | ----------------------------------------------------------------- |
||
64 | */ |
||
65 | |||
66 | public function index() |
||
75 | |||
76 | public function edit() |
||
80 | |||
81 | public function update() |
||
85 | |||
86 | public function updatePassword(UpdatePasswordRequest $request, User $user) |
||
94 | |||
95 | /* ----------------------------------------------------------------- |
||
96 | | Other methods |
||
97 | | ----------------------------------------------------------------- |
||
98 | */ |
||
99 | |||
100 | /** |
||
101 | * Get the authenticated user. |
||
102 | * |
||
103 | * @return \Arcanesoft\Contracts\Auth\Models\User |
||
104 | */ |
||
105 | private function getAuthenticatedUser() |
||
109 | |||
110 | /** |
||
111 | * Notify with translation. |
||
112 | * |
||
113 | * @param string $action |
||
114 | * @param array $replace |
||
115 | * @param array $context |
||
116 | * |
||
117 | * @return string |
||
118 | */ |
||
119 | protected function transNotification($action, array $replace = [], array $context = []) |
||
129 | } |
||
130 |
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: