mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Fixed: force string on username
This commit is contained in:
@@ -506,11 +506,11 @@ class User implements UserInterface
|
||||
*
|
||||
* @return User
|
||||
*/
|
||||
public function setUsername($name)
|
||||
public function setUsername(?string $name)
|
||||
{
|
||||
$this->username = $name;
|
||||
$this->username = (string) $name;
|
||||
|
||||
if (empty($this->getLabel())) {
|
||||
if ("" === trim($this->getLabel())) {
|
||||
$this->setLabel($name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user