| 1 | <?php |
||
| 26 | class Auth extends AbstractAuthAdapter |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * Authenticates the user. |
||
| 30 | * |
||
| 31 | * @return Result |
||
| 32 | */ |
||
| 33 | public function authenticate() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Gets the authenticated user's entity. |
||
| 45 | * |
||
| 46 | * @throws Exception |
||
| 47 | * @return null|string|UserEntity |
||
| 48 | */ |
||
| 49 | public function getIdentity() |
||
| 69 | } |
||
| 70 |
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: