use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwnerId;
17
use OAuth2Framework\Component\Core\UserAccount\UserAccountId;
18
use OAuth2Framework\Component\ResourceOwnerPasswordCredentialsGrant\ResourceOwnerPasswordCredentialManager as ResourceOwnerPasswordCredentialManagerInterface;
19
20
class ResourceOwnerPasswordCredentialManager implements ResourceOwnerPasswordCredentialManagerInterface
It seems like array('password.1' => ne...serAccountId('john.1')) of type array<string,object<OAut...ount\\UserAccountId>"}> is incompatible with the declared type array<integer,object<OAu...Owner\ResourceOwnerId>> of property $usernameAndPasswords.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
30
'password.1' => new UserAccountId('john.1'),
31
];
32
}
33
34
public function findResourceOwnerIdWithUsernameAndPassword(string $username, string $password): ?ResourceOwnerId
35
{
36
if (!array_key_exists($password, $this->usernameAndPasswords)) {
37
return null;
38
}
39
if ($this->usernameAndPasswords[$password]->getValue() !== $username) {
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..