1 | <?php |
||
27 | class User extends \rhosocial\base\models\web\User |
||
28 | { |
||
29 | public function init() |
||
34 | |||
35 | /** |
||
36 | * @param Event $event |
||
37 | */ |
||
38 | public function onRecordLogin($event) |
||
42 | |||
43 | /** |
||
44 | * @return bool|mixed |
||
45 | */ |
||
46 | public function getIsAdmin() |
||
53 | |||
54 | /** |
||
55 | * @return bool|mixed |
||
56 | */ |
||
57 | public function getIsWebmaster() |
||
64 | |||
65 | const LOGIN_BY_ID = 'id'; |
||
66 | const LOGIN_BY_USERNAME = 'username'; |
||
67 | |||
68 | /** |
||
69 | * Get the priority of login. |
||
70 | * Array value is login method class name. |
||
71 | * @return array |
||
72 | */ |
||
73 | public function getLoginPriority() |
||
80 | } |
||
81 |
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: