| 1 | <?php |
||
| 14 | class LogoutTemplate extends AdminTemplate |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param array|\ArayAccess $data |
||
| 19 | */ |
||
| 20 | public function __construct($data) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param UserInterface $user |
||
| 33 | * @return LogoutTemplate Chainable |
||
| 34 | */ |
||
| 35 | private function deleteUserAuthTokens($user) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Authentication is obviously never required for the login page. |
||
| 49 | * |
||
| 50 | * @return boolean |
||
| 51 | */ |
||
| 52 | protected function authRequired() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return boolean |
||
| 59 | */ |
||
| 60 | public function showHeaderMenu() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return boolean |
||
| 67 | */ |
||
| 68 | public function showFooterMenu() |
||
| 72 | } |
||
| 73 |
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: