You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In production environment i get regularly this exception in logs :
Uncaught PHP Exception TypeError: "Symfony\Component\Security\Http\Authentication\AuthenticationUtils::getLastUsername(): Return value must be of type string, null returned" at AuthenticationUtils.php
How to reproduce
I don't know exactly what trigger this exception
Possible Solution
Changing the return type of the method :
public function getLastUsername(): ?string
{
$request = $this->getRequest();