1 | <?php |
||
14 | class UserRepository implements UserRepositoryInterface |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | public function getUserEntityByUserCredentials( |
||
33 | |||
34 | /** |
||
35 | * Gets a UserEntity by their identifier (Member->Email). |
||
36 | * |
||
37 | * @param string $userIdentifier |
||
38 | * @return UserEntity |
||
39 | */ |
||
40 | public function getUserEntityByIdentifier(string $userIdentifier): UserEntity |
||
44 | |||
45 | } |
||
46 |
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: