Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Bug when a user doesn't exist anymore #23

Open
thomasvargiu opened this issue Apr 11, 2019 · 1 comment
Open

Bug when a user doesn't exist anymore #23

thomasvargiu opened this issue Apr 11, 2019 · 1 comment

Comments

@thomasvargiu
Copy link

There is a problem with the user factory closure:

$this->userFactory = function (
string $identity,
array $roles = [],
array $details = []
) use ($userFactory) : UserInterface {
return $userFactory($identity, $roles, $details);
};

When a user doesn't exist anymore in the repository, the user factory should be able to return null. Right now aTypeError is thrown.

@weierophinney
Copy link
Member

This repository has been closed and moved to mezzio/mezzio-authentication-session; a new issue has been opened at mezzio/mezzio-authentication-session#1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants