| 1 | <?php |
||
| 25 | class User extends \rhosocial\base\models\web\User |
||
| 26 | { |
||
| 27 | public function init() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param Event $event |
||
| 35 | */ |
||
| 36 | public function onRecordLogin($event) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return bool|mixed |
||
| 43 | */ |
||
| 44 | public function getIsAdmin() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return bool|mixed |
||
| 54 | */ |
||
| 55 | public function getIsWebmaster() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * |
||
| 65 | */ |
||
| 66 | public function getLoginPriority() |
||
| 73 | } |
||
| 74 |
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: