1 | <?php |
||
16 | class User extends BaseUser |
||
17 | { |
||
18 | protected $table = 'users_back'; |
||
19 | |||
20 | public function guardDriver(): string |
||
24 | |||
25 | public function getHomeUrl(): string |
||
29 | |||
30 | public function getProfileUrl(): string |
||
34 | |||
35 | public function getStatusAttribute(): UserStatus |
||
39 | |||
40 | public function setStatusAttribute(UserStatus $status) |
||
44 | |||
45 | public function hasStatus(UserStatus $status): bool |
||
49 | |||
50 | public function isActive(): bool |
||
54 | |||
55 | public function activate(): User |
||
65 | |||
66 | public function getRoleAttribute(): UserRole |
||
70 | |||
71 | public function setRoleAttribute(UserRole $role) |
||
75 | |||
76 | public function hasRole(UserRole $role): bool |
||
80 | |||
81 | /** |
||
82 | * Send the password reset notification. |
||
83 | * |
||
84 | * @param string $token |
||
85 | */ |
||
86 | public function sendPasswordResetNotification($token) |
||
90 | |||
91 | public function delete() |
||
99 | } |
||
100 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: