Symfony bug in AbstractGuardAuthenticator.php
How to fix a bug in security-guard / AbstractGuardAuthenticator.php.
Mistake:
Argument 3 passed to Symfony Component Security Guard Token PostAuthenticationGuardToken :: __ construct () must be of the type array, null given, called in vendor / symfony / security-guard / AbstractGuardAuthenticator.php on line 35
This means that in the user entity, usually this is the Entity / User.php file, you need to add: